diff options
author | pjd <pjd@FreeBSD.org> | 2007-04-18 15:22:07 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2007-04-18 15:22:07 +0000 |
commit | 20ada399491004fe07383a10fdc0d2f66396ed0d (patch) | |
tree | 8653f8ca5f8d0f27807c68d7123290e68a706f61 /sys/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c | |
parent | aa1721f6a40ac758a6e713a9f77cbbdafa6b3524 (diff) | |
download | FreeBSD-src-20ada399491004fe07383a10fdc0d2f66396ed0d.zip FreeBSD-src-20ada399491004fe07383a10fdc0d2f66396ed0d.tar.gz |
MFp4: We check for PRIV_VFS_MOUNT already in mount(2) syscall and we don't
want to do the check when snapshot is automatically mounted by an
unprivileged user doing lookup on a snapshot directory.
Diffstat (limited to 'sys/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c')
-rw-r--r-- | sys/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c b/sys/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c index 4ca8f67..c76d889 100644 --- a/sys/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c +++ b/sys/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c @@ -578,10 +578,6 @@ zfs_mount(vfs_t *vfsp, kthread_t *td) char *from; int error; - /* TODO: For now deny user mounts. */ - if ((error = priv_check(td, PRIV_VFS_MOUNT)) != 0) - return (error); - /* * When doing a remount, we simply refresh our temporary properties * according to those options set in the current VFS options. |