You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 add the rollback permission requirement for force receive.
To avoid changing current default behavior, a new tunable
zfs_recv_force_needs_perm is introduced. When set to 0 (default) the
new permission check is disabled. When set to 1 rollback permission
requirement is enabled.
Fixes#16943
Signed-off-by: Gionatan Danti <[email protected]>
Copy file name to clipboardexpand all lines: man/man8/zfs-allow.8
+1-1
Original file line number
Diff line number
Diff line change
@@ -207,7 +207,7 @@ load-key subcommand Allows loading and unloading of encryption key (see \fBzfs l
207
207
change-key subcommand Allows changing an encryption key via \fBzfschange-key\fR.
208
208
mount subcommand Allows mounting/umounting ZFS datasets
209
209
promote subcommand Must also have the \fBmount\fR and \fBpromote\fR ability in the origin file system
210
-
receive subcommand Must also have the \fBmount\fR and \fBcreate\fR ability
210
+
receive subcommand Must also have the \fBmount\fR and \fBcreate\fR ability; must also have the \fBrollback\fR ability if \fBzfsreceive-F\fR (force receive) is used and \fBzfs_recv_force_needs_perm\fR is set to 1.
211
211
release subcommand Allows releasing a user hold which might destroy the snapshot
212
212
rename subcommand Must also have the \fBmount\fR and \fBcreate\fR ability in the new parent
213
213
rollback subcommand Must also have the \fBmount\fR ability
0 commit comments