]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
By default, when a process in jail calls getfsstat(), only return the
authorrwatson <rwatson@FreeBSD.org>
Sat, 14 Feb 2004 18:31:11 +0000 (18:31 +0000)
committerrwatson <rwatson@FreeBSD.org>
Sat, 14 Feb 2004 18:31:11 +0000 (18:31 +0000)
commit8caf918eda0b4024483d8138c382997b249284e7
tree9fffcf3b0b401139cbfcaea52b596d05f0317778
parentc9a89db245795132bf8c0a936121078738b7ee58
By default, when a process in jail calls getfsstat(), only return the
data for the file system on which the jail's root vnode is located.
Previous behavior (show data for all mountpoints) can be restored
by setting security.jail.getfsstatroot_only to 0.  Note: this also
has the effect of hiding other mounts inside a jail, such as /dev,
/tmp, and /proc, but errs on the side of leaking less information.
sys/kern/kern_jail.c
sys/kern/vfs_extattr.c
sys/kern/vfs_syscalls.c
sys/sys/jail.h