diff options
author | pjd <pjd@FreeBSD.org> | 2005-06-23 22:13:29 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2005-06-23 22:13:29 +0000 |
commit | a99a8a69bde61c22a20ce88c671f204243533b94 (patch) | |
tree | 9a50936c89d0a3dce63f6550a4b24e9b5559de77 /sys/kern/kern_jail.c | |
parent | be2da9ea22abd72b769e046aa2d3cc597cfea311 (diff) | |
download | FreeBSD-src-a99a8a69bde61c22a20ce88c671f204243533b94.zip FreeBSD-src-a99a8a69bde61c22a20ce88c671f204243533b94.tar.gz |
Actually only protect mount-point if security.jail.enforce_statfs is set to 2.
If we don't return statistics about requested file systems, system tools
may not work correctly or at all.
Approved by: re (scottl)
Diffstat (limited to 'sys/kern/kern_jail.c')
-rw-r--r-- | sys/kern/kern_jail.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/kern/kern_jail.c b/sys/kern/kern_jail.c index 9ca85c6..c3d1f9a 100644 --- a/sys/kern/kern_jail.c +++ b/sys/kern/kern_jail.c @@ -488,7 +488,6 @@ prison_enforce_statfs(struct ucred *cred, struct mount *mp, struct statfs *sp) return; pr = cred->cr_prison; if (prison_canseemount(cred, mp) != 0) { - /* Should never happen. */ bzero(sp->f_mntonname, sizeof(sp->f_mntonname)); strlcpy(sp->f_mntonname, "[restricted]", sizeof(sp->f_mntonname)); |