mirror_zfs/module/zcommon
shodanshok 201d262949
Add receive:append permission for limited receive
Force receive (zfs receive -F) can rollback or destroy snapshots and
file systems that do not exist on the sending side (see zfs-receive man
page). This means an user having the receive permission can effectively
delete data on receiving side, even if such user does not have explicit
rollback or destroy permissions.

This patch adds the receive:append permission, which only permits
limited, non-forced receive. Behavior for users with full receive
permission is not changed in any way.

Fixes #16943
Reviewed-by: Ameer Hamza <ahamza@ixsystems.com>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Gionatan Danti <g.danti@assyoma.it>
Closes #17015
2025-03-13 13:54:14 -04:00
..
cityhash.c zcommon: add specialized versions of cityhash4 2024-09-19 15:18:59 -07:00
simd_stat.c simd_stat: fix undefined CONFIG_KERNEL_MODE_NEON error on armel 2024-12-16 09:40:41 -08:00
zfeature_common.c feature: large_microzap 2024-10-02 20:47:11 -07:00
zfs_comutil.c nvpair: Constify string functions 2023-03-14 15:25:50 -07:00
zfs_deleg.c Add receive:append permission for limited receive 2025-03-13 13:54:14 -04:00
zfs_fletcher_aarch64_neon.c Drop lying to the compiler in the fletcher4 code 2023-03-24 10:29:19 -07:00
zfs_fletcher_avx512.c Drop lying to the compiler in the fletcher4 code 2023-03-24 10:29:19 -07:00
zfs_fletcher_intel.c Drop lying to the compiler in the fletcher4 code 2023-03-24 10:29:19 -07:00
zfs_fletcher_sse.c Drop lying to the compiler in the fletcher4 code 2023-03-24 10:29:19 -07:00
zfs_fletcher_superscalar4.c Drop lying to the compiler in the fletcher4 code 2023-03-24 10:29:19 -07:00
zfs_fletcher_superscalar.c Drop lying to the compiler in the fletcher4 code 2023-03-24 10:29:19 -07:00
zfs_fletcher.c Replace P2ALIGN with P2ALIGN_TYPED and delete P2ALIGN. 2024-05-10 08:47:21 -07:00
zfs_namecheck.c Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
zfs_prop.c snapdir: add 'disabled' value to make .zfs inaccessible 2024-10-02 09:12:02 -07:00
zfs_valstr.c Remove unnecessary CSTYLED escapes on top-level macro invocations 2024-12-06 08:53:57 -08:00
zpool_prop.c zprop: fix value help for ZPOOL_PROP_CAPACITY 2024-12-18 15:25:12 -08:00
zprop_common.c Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00