Files
mirror_zfs/module/os/freebsd/spl
Allan Jude 595d3ac2ed Allow mounting snapshots in .zfs/snapshot as a regular user
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
2022-11-03 11:53:24 -07:00
..
2020-04-14 11:36:28 -07:00
2020-04-14 11:36:28 -07:00
2022-03-15 15:13:42 -07:00
2020-04-14 11:36:28 -07:00
2020-04-14 11:36:28 -07:00
2022-03-15 15:13:42 -07:00
2020-04-14 11:36:28 -07:00
2022-03-15 15:13:42 -07:00
2020-05-04 15:07:04 -07:00
2022-06-29 14:08:54 -07:00
2021-06-10 08:27:33 -07:00
2022-10-29 13:05:11 -07:00
2022-05-13 10:15:31 -07:00
2021-11-19 10:02:45 -07:00
2022-03-15 15:13:42 -07:00
2022-03-15 15:13:42 -07:00