summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg_install
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>2001-11-22 01:54:33 +0000
committerjkh <jkh@FreeBSD.org>2001-11-22 01:54:33 +0000
commitd51c426705b561f9ce3bf8d9ea54a802fb9c3ec4 (patch)
tree15cde0d83656c636ee3b85c8c4ad7919e420eee5 /usr.sbin/pkg_install
parent793f2d8a0ffcf1b2013f6d55a8ba1b95029c80d9 (diff)
downloadFreeBSD-src-d51c426705b561f9ce3bf8d9ea54a802fb9c3ec4.zip
FreeBSD-src-d51c426705b561f9ce3bf8d9ea54a802fb9c3ec4.tar.gz
Choose more paranoid modes for the temporary directory so the user can't
easily browse its contents. Noted by: Antoine
Diffstat (limited to 'usr.sbin/pkg_install')
-rw-r--r--usr.sbin/pkg_install/lib/pen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/pkg_install/lib/pen.c b/usr.sbin/pkg_install/lib/pen.c
index 1714bd8..eae54ea 100644
--- a/usr.sbin/pkg_install/lib/pen.c
+++ b/usr.sbin/pkg_install/lib/pen.c
@@ -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);
}
OpenPOWER on IntegriCloud