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:
parent
13c100b0d8
commit
f2c9a576db
@ -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.
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user