-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Open
Labels
Type: FeatureFeature request or new featureFeature request or new feature
Description
Describe the feature would like to see added to OpenZFS
I use syncoid to pull backups from my computers. Each machine has a backup user, who gets these rights: bookmark,hold,send,snapshot,destroy,mount. However, granting destroy rights on the filesystems meant to be backed up is a bit dangerous. It would be nice to remove that permission. Ideally, the backup account should only be allowed to destroy snapshots that it itself has created.
Here are two concrete changes that I believe would enable this:
- Change
allowpermissions so that they can apply to snapshots separately from datasets. - Add an option to
zfs snapshotthat, when making the snapshot, also grants the creating user thedestroypermission on that snapshot.
How will this feature improve OpenZFS?
Backing up a dataset should not require the ability to destroy the dataset. Granting that permission increases the risk of accidental or malicious destruction triggered by backup scripts. The changes proposed here would allow backups to be made without needing any dangerous permissions.
GregorKopka, ChristophSchmidpeter and philpem
Metadata
Metadata
Assignees
Labels
Type: FeatureFeature request or new featureFeature request or new feature