2008-04-29 13:58:34 +00:00
|
|
|
|
2009-03-11 14:19:50 +00:00
|
|
|
policy_module(auditadm, 2.0.1)
|
2008-04-29 13:58:34 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
|
|
|
|
role auditadm_r;
|
|
|
|
|
|
|
|
userdom_unpriv_user_template(auditadm)
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Local policy
|
|
|
|
#
|
|
|
|
|
|
|
|
allow auditadm_t self:capability { dac_read_search dac_override };
|
|
|
|
|
2009-03-11 14:19:50 +00:00
|
|
|
kernel_read_ring_buffer(auditadm_t)
|
|
|
|
|
2008-04-29 13:58:34 +00:00
|
|
|
corecmd_exec_shell(auditadm_t)
|
|
|
|
|
|
|
|
domain_kill_all_domains(auditadm_t)
|
|
|
|
|
|
|
|
logging_send_syslog_msg(auditadm_t)
|
|
|
|
logging_read_generic_logs(auditadm_t)
|
|
|
|
logging_manage_audit_log(auditadm_t)
|
|
|
|
logging_manage_audit_config(auditadm_t)
|
2008-11-05 16:10:46 +00:00
|
|
|
logging_run_auditctl(auditadm_t, auditadm_r)
|
|
|
|
logging_run_auditd(auditadm_t, auditadm_r)
|
2008-04-29 13:58:34 +00:00
|
|
|
|
2008-11-05 16:10:46 +00:00
|
|
|
seutil_run_runinit(auditadm_t, auditadm_r)
|
2008-04-29 13:58:34 +00:00
|
|
|
seutil_read_bin_policy(auditadm_t)
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
consoletype_exec(auditadm_t)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
dmesg_exec(auditadm_t)
|
|
|
|
')
|
|
|
|
|
2008-11-05 16:10:46 +00:00
|
|
|
optional_policy(`
|
|
|
|
screen_role_template(auditadm, auditadm_r, auditadm_t)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
secadm_role_change(auditadm_r)
|
2008-04-29 13:58:34 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
2008-11-05 16:10:46 +00:00
|
|
|
su_role_template(auditadm, auditadm_r, auditadm_t)
|
2008-04-29 13:58:34 +00:00
|
|
|
')
|
|
|
|
|
2008-11-05 16:10:46 +00:00
|
|
|
optional_policy(`
|
|
|
|
sudo_role_template(auditadm, auditadm_r, auditadm_t)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
sysadm_role_change(auditadm_r)
|
|
|
|
')
|
|
|
|
|