Choose more paranoid modes for the temporary directory so the user can't
easily browse its contents. Noted by: Antoine
This commit is contained in:
parent
793f2d8a0f
commit
d51c426705
@ -107,7 +107,7 @@ make_playpen(char *pen, off_t sz)
|
||||
cleanup(0);
|
||||
errx(2, __FUNCTION__ ": can't mktemp '%s'", pen);
|
||||
}
|
||||
if (chmod(pen, 0755) == FAIL) {
|
||||
if (chmod(pen, 0700) == FAIL) {
|
||||
cleanup(0);
|
||||
errx(2, __FUNCTION__ ": can't mkdir '%s'", pen);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user