Files
mirror_zfs/module/os/freebsd/zfs
Allan Jude 5161e5d8a4 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
2023-02-06 10:40:16 -08:00
..
2022-07-26 10:10:37 -07:00
2020-04-14 11:36:28 -07:00
2023-01-19 12:50:36 -08:00
2022-03-20 21:21:18 -07:00
2021-06-24 13:12:36 -07:00
2022-09-28 10:35:13 -07:00
2022-09-28 10:35:13 -07:00
2023-01-19 12:50:42 -08:00
2022-05-02 15:42:58 -07:00