use resonable acl paths (fixup)

This commit is contained in:
Dietmar Maurer 2020-04-30 09:32:13 +02:00
parent 74c08a5782
commit f1490da82a
2 changed files with 4 additions and 4 deletions

View File

@ -47,7 +47,7 @@ use crate::config::acl::PRIV_SYS_AUDIT;
} }
}, },
access: { access: {
permission: &Permission::Privilege(&[], PRIV_SYS_AUDIT, false), permission: &Permission::Privilege(&["system", "status"], PRIV_SYS_AUDIT, false),
}, },
)] )]
/// Read node memory, CPU and (root) disk usage /// Read node memory, CPU and (root) disk usage

View File

@ -70,7 +70,7 @@ use crate::config::acl::{PRIV_SYS_AUDIT, PRIV_SYS_MODIFY};
}, },
}, },
access: { access: {
permission: &Permission::Privilege(&[], PRIV_SYS_AUDIT, false), permission: &Permission::Privilege(&["system", "tasks"], PRIV_SYS_AUDIT, false),
}, },
)] )]
/// Get task status. /// Get task status.
@ -138,7 +138,7 @@ fn extract_upid(param: &Value) -> Result<UPID, Error> {
}, },
}, },
access: { access: {
permission: &Permission::Privilege(&[], PRIV_SYS_AUDIT, false), permission: &Permission::Privilege(&["system", "tasks"], PRIV_SYS_AUDIT, false),
}, },
)] )]
/// Read task log. /// Read task log.
@ -203,7 +203,7 @@ fn read_task_log(
}, },
}, },
access: { access: {
permission: &Permission::Privilege(&[], PRIV_SYS_MODIFY, false), permission: &Permission::Privilege(&["system", "tasks"], PRIV_SYS_MODIFY, false),
}, },
)] )]
/// Try to stop a task. /// Try to stop a task.