Skip to content

Commit

Permalink
roles: Added log watching permissions to secadm and sysadm.
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Davies <[email protected]>
  • Loading branch information
jpds committed Apr 25, 2021
1 parent 5873a52 commit 431f03f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions policy/modules/roles/secadm.te
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ init_exec(secadm_t)
logging_read_audit_log(secadm_t)
logging_read_generic_logs(secadm_t)
logging_read_audit_config(secadm_t)
logging_watch_audit_log(secadm_t)

optional_policy(`
aide_run(secadm_t, secadm_r)
Expand Down
3 changes: 3 additions & 0 deletions policy/modules/roles/sysadm.te
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ corenet_ib_manage_subnet_unlabeled_endports(sysadm_t)

dev_read_kmsg(sysadm_t)

logging_watch_all_logs(sysadm_t)
logging_watch_audit_log(sysadm_t)

mls_process_read_all_levels(sysadm_t)

selinux_read_policy(sysadm_t)
Expand Down

0 comments on commit 431f03f

Please sign in to comment.