Skip to content

Commit

Permalink
test-conf: don't create the setuid copy in /tmp
Browse files Browse the repository at this point in the history
The temporary directory is often mounted with nosuid, thus whatever runs
from there doesn't get AT_SECURE in auxv.
  • Loading branch information
lkundrak authored and ueno committed Nov 29, 2016
1 parent 9cb55d7 commit 8046370
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/test.c
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ p11_test_copy_setgid (const char *input)
return NULL;
}

path = strdup ("/tmp/test-setgid.XXXXXX");
path = strdup (BUILDDIR "/test-setgid.XXXXXX");
assert (path != NULL);

fd = mkstemp (path);
Expand Down

0 comments on commit 8046370

Please sign in to comment.