mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
10ecab16ce
commit
fe7283fc23
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue