mirror of
git://git.proxmox.com/git/proxmox-backup.git
synced 2024-12-22 13:34:16 +03:00
config: acl: allow namespace components for remote datastores
Extend the component limit for ACL paths of `remote` to include possible namespace components. This allows to limit the permissions for sync jobs in push direction to a namespace subset on the remote datastore. Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
This commit is contained in:
parent
732d9d7a5f
commit
aa273905d7
@ -86,8 +86,8 @@ pub fn check_acl_path(path: &str) -> Result<(), Error> {
|
||||
}
|
||||
}
|
||||
"remote" => {
|
||||
// /remote/{remote}/{store}
|
||||
if components_len <= 3 {
|
||||
// /remote/{remote}/{store}/{namespace}
|
||||
if components_len <= 3 + pbs_api_types::MAX_NAMESPACE_DEPTH {
|
||||
return Ok(());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user