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.
This commit is contained in:
Pawel Jakub Dawidek 2007-04-18 15:22:07 +00:00
parent 13c100b0d8
commit f2c9a576db
2 changed files with 0 additions and 8 deletions

View File

@ -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.

View File

@ -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.