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/compat/linux/linux_stats.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/compat/linux/linux_stats.c')
-rw-r--r-- | sys/compat/linux/linux_stats.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/compat/linux/linux_stats.c b/sys/compat/linux/linux_stats.c index da08a10..d0c5231 100644 --- a/sys/compat/linux/linux_stats.c +++ b/sys/compat/linux/linux_stats.c @@ -331,9 +331,6 @@ linux_ustat(struct thread *td, struct linux_ustat_args *args) if (dev != NULL && vfinddev(dev, &vp)) { if (vp->v_mount == NULL) return (EINVAL); - error = prison_canseemount(td->td_ucred, vp->v_mount); - if (error) - return (error); #ifdef MAC error = mac_check_mount_stat(td->td_ucred, vp->v_mount); if (error) |