diff options
author | Brian Behlendorf <[email protected]> | 2015-08-28 14:54:32 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2015-09-04 13:23:53 -0700 |
commit | 0500e835af3ea1f3abe27a572f7b2328b4cde386 (patch) | |
tree | a04792d8c5ad4d17ea4c7f80fe837b4e2caf11ec /cmd | |
parent | aa9b27080b3411cddf93391bef3090a1a3fcaccc (diff) |
Support accessing .zfs/snapshot via NFS
This patch is based on the previous work done by @andrey-ve and
@yshui. It triggers the automount by using kern_path() to traverse
to the known snapshout mount point. Once the snapshot is mounted
NFS can access the contents of the snapshot.
Allowing NFS clients to access to the .zfs/snapshot directory would
normally mean that a root user on a client mounting an export with
'no_root_squash' would be able to use mkdir/rmdir/mv to manipulate
snapshots on the server. To prevent configuration mistakes a
zfs_admin_snapshot module option was added which disables the
mkdir/rmdir/mv functionally. System administators desiring this
functionally must explicitly enable it.
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #2797
Closes #1655
Closes #616
Diffstat (limited to 'cmd')
0 files changed, 0 insertions, 0 deletions