Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177193827
D51702.1793945295.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
928 B
Referenced Files
None
Subscribers
None
D51702.1793945295.diff
View Options
Index: lib/libsys/chroot.2
===================================================================
--- lib/libsys/chroot.2
+++ lib/libsys/chroot.2
@@ -61,9 +61,9 @@
.Fn chroot
has no effect on the process's current directory.
.Pp
-This call is restricted to the super-user, unless the
+This call is restricted to the super-user if the
.Ql security.bsd.unprivileged_chroot
-sysctl variable is set to 1.
+sysctl variable is set to 0.
.Pp
Depending on the setting of the
.Ql kern.chroot_allow_open_directories
Index: sys/kern/vfs_syscalls.c
===================================================================
--- sys/kern/vfs_syscalls.c
+++ sys/kern/vfs_syscalls.c
@@ -965,7 +965,7 @@
return (0);
}
-static int unprivileged_chroot = 0;
+static int unprivileged_chroot = 1;
SYSCTL_INT(_security_bsd, OID_AUTO, unprivileged_chroot, CTLFLAG_RW,
&unprivileged_chroot, 0,
"Unprivileged processes can use chroot(2)");
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 6, 6:08 AM (51 m, 19 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41494955
Default Alt Text
D51702.1793945295.diff (928 B)
Attached To
Mode
D51702: kernel: Allow unprivileged chroot by default
Attached
Detach File
Event Timeline