summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_extattr.c
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2005-06-23 22:13:29 +0000
committerpjd <pjd@FreeBSD.org>2005-06-23 22:13:29 +0000
commita99a8a69bde61c22a20ce88c671f204243533b94 (patch)
tree9a50936c89d0a3dce63f6550a4b24e9b5559de77 /sys/kern/vfs_extattr.c
parentbe2da9ea22abd72b769e046aa2d3cc597cfea311 (diff)
downloadFreeBSD-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/vfs_extattr.c')
-rw-r--r--sys/kern/vfs_extattr.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/sys/kern/vfs_extattr.c b/sys/kern/vfs_extattr.c
index fe796dc..fb7f467 100644
--- a/sys/kern/vfs_extattr.c
+++ b/sys/kern/vfs_extattr.c
@@ -257,11 +257,6 @@ kern_statfs(struct thread *td, char *path, enum uio_seg pathseg,
sp = &mp->mnt_stat;
NDFREE(&nd, NDF_ONLY_PNBUF);
vrele(nd.ni_vp);
- error = prison_canseemount(td->td_ucred, mp);
- if (error) {
- mtx_unlock(&Giant);
- return (error);
- }
#ifdef MAC
error = mac_check_mount_stat(td->td_ucred, mp);
if (error) {
@@ -335,11 +330,6 @@ kern_fstatfs(struct thread *td, int fd, struct statfs *buf)
mtx_unlock(&Giant);
return (EBADF);
}
- error = prison_canseemount(td->td_ucred, mp);
- if (error) {
- mtx_unlock(&Giant);
- return (error);
- }
#ifdef MAC
error = mac_check_mount_stat(td->td_ucred, mp);
if (error) {
OpenPOWER on IntegriCloud