[pbs-devel] [PATCH proxmox-backup] api: admin: add Datastore.Modify permission for mount
Hannes Laimer
h.laimer at proxmox.com
Wed Nov 27 11:18:40 CET 2024
So the mount and unmount endpoint have matching permissions.
Signed-off-by: Hannes Laimer <h.laimer at proxmox.com>
---
src/api2/admin/datastore.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/api2/admin/datastore.rs b/src/api2/admin/datastore.rs
index cae7eb89c..d27c00f2b 100644
--- a/src/api2/admin/datastore.rs
+++ b/src/api2/admin/datastore.rs
@@ -2513,7 +2513,7 @@ pub fn do_mount_device(datastore: DataStoreConfig) -> Result<(), Error> {
},
access: {
permission: &Permission::And(&[
- &Permission::Privilege(&["datastore", "{store}"], PRIV_DATASTORE_AUDIT, false),
+ &Permission::Privilege(&["datastore", "{store}"], PRIV_DATASTORE_MODIFY, false),
&Permission::Privilege(&["system", "disks"], PRIV_SYS_MODIFY, false)
]),
},
--
2.39.5
More information about the pbs-devel
mailing list