diff --git a/src/api2/node/syslog.rs b/src/api2/node/syslog.rs index 2a43ece7..55b3bd5c 100644 --- a/src/api2/node/syslog.rs +++ b/src/api2/node/syslog.rs @@ -3,9 +3,10 @@ use std::process::{Command, Stdio}; use failure::*; use serde_json::{json, Value}; -use proxmox::api::{api, ApiMethod, Router, RpcEnvironment}; +use proxmox::api::{api, ApiMethod, Router, RpcEnvironment, Permission}; use crate::api2::types::*; +use crate::config::acl::PRIV_SYS_AUDIT; fn dump_journal( start: Option, @@ -122,6 +123,9 @@ fn dump_journal( } }, }, + access: { + permission: &Permission::Privilege(&[], PRIV_SYS_AUDIT, false), + }, )] /// Read syslog entries. fn get_syslog(