mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-10-24 08:55:00 +03:00
Rather than doing a terrible credential swapping hack, we just check that the thing being mounted is a snapshot, and the mountpoint is the zfsctl directory, then we allow it. If the mount attempt is from inside a jail, on an unjailed dataset (mounted from the host, not by the jail), the ability to mount the snapshot is controlled by a new per-jail parameter: zfs.mount_snapshot Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Co-authored-by: Ryan Moeller <ryan@iXsystems.com> Signed-off-by: Ryan Moeller <ryan@iXsystems.com> Signed-off-by: Allan Jude <allan@klarasystems.com> Sponsored-by: Modirum MDPay Sponsored-by: Klara Inc. Closes #13758 |
||
|---|---|---|
| .. | ||
| acl_common.c | ||
| callb.c | ||
| list.c | ||
| sha224.h | ||
| sha256.h | ||
| sha256c.c | ||
| sha384.h | ||
| sha512.h | ||
| sha512c.c | ||
| sha512t.h | ||
| spl_acl.c | ||
| spl_atomic.c | ||
| spl_cmn_err.c | ||
| spl_dtrace.c | ||
| spl_kmem.c | ||
| spl_kstat.c | ||
| spl_misc.c | ||
| spl_policy.c | ||
| spl_procfs_list.c | ||
| spl_string.c | ||
| spl_sunddi.c | ||
| spl_sysevent.c | ||
| spl_taskq.c | ||
| spl_uio.c | ||
| spl_vfs.c | ||
| spl_vm.c | ||
| spl_zlib.c | ||
| spl_zone.c | ||