|
Chris PeBenito |
9570b2 |
policy_module(secadm, 2.1.0)
|
|
Chris PeBenito |
e9c6cd |
|
|
Chris PeBenito |
e9c6cd |
########################################
|
|
Chris PeBenito |
e9c6cd |
#
|
|
Chris PeBenito |
e9c6cd |
# Declarations
|
|
Chris PeBenito |
e9c6cd |
#
|
|
Chris PeBenito |
e9c6cd |
|
|
Chris PeBenito |
e9c6cd |
role secadm_r;
|
|
Chris PeBenito |
e9c6cd |
|
|
Chris PeBenito |
e9c6cd |
userdom_unpriv_user_template(secadm)
|
|
Chris PeBenito |
296273 |
userdom_security_admin_template(secadm_t, secadm_r)
|
|
Chris PeBenito |
e9c6cd |
|
|
Chris PeBenito |
e9c6cd |
########################################
|
|
Chris PeBenito |
e9c6cd |
#
|
|
Chris PeBenito |
e9c6cd |
# Local policy
|
|
Chris PeBenito |
e9c6cd |
#
|
|
Chris PeBenito |
e9c6cd |
|
|
Chris PeBenito |
e9c6cd |
allow secadm_t self:capability { dac_read_search dac_override };
|
|
Chris PeBenito |
e9c6cd |
|
|
Chris PeBenito |
e9c6cd |
corecmd_exec_shell(secadm_t)
|
|
Chris PeBenito |
e9c6cd |
|
|
Chris PeBenito |
e9c6cd |
dev_relabel_all_dev_nodes(secadm_t)
|
|
Chris PeBenito |
e9c6cd |
|
|
Chris PeBenito |
e9c6cd |
domain_obj_id_change_exemption(secadm_t)
|
|
Chris PeBenito |
e9c6cd |
|
|
Chris PeBenito |
e9c6cd |
mls_process_read_up(secadm_t)
|
|
Chris PeBenito |
e9c6cd |
mls_file_read_all_levels(secadm_t)
|
|
Chris PeBenito |
e9c6cd |
mls_file_write_all_levels(secadm_t)
|
|
Chris PeBenito |
e9c6cd |
mls_file_upgrade(secadm_t)
|
|
Chris PeBenito |
e9c6cd |
mls_file_downgrade(secadm_t)
|
|
Chris PeBenito |
e9c6cd |
|
|
Chris PeBenito |
296273 |
auth_role(secadm_r, secadm_t)
|
|
Chris PeBenito |
e9c6cd |
auth_relabel_all_files_except_shadow(secadm_t)
|
|
Chris PeBenito |
e9c6cd |
auth_relabel_shadow(secadm_t)
|
|
Chris PeBenito |
e9c6cd |
|
|
Chris PeBenito |
e9c6cd |
init_exec(secadm_t)
|
|
Chris PeBenito |
e9c6cd |
|
|
Chris PeBenito |
e9c6cd |
logging_read_audit_log(secadm_t)
|
|
Chris PeBenito |
e9c6cd |
logging_read_generic_logs(secadm_t)
|
|
Chris PeBenito |
e9c6cd |
logging_read_audit_config(secadm_t)
|
|
Chris PeBenito |
e9c6cd |
|
|
Chris PeBenito |
e9c6cd |
optional_policy(`
|
|
Chris PeBenito |
296273 |
aide_run(secadm_t, secadm_r)
|
|
Chris PeBenito |
e9c6cd |
')
|
|
Chris PeBenito |
e9c6cd |
|
|
Chris PeBenito |
e9c6cd |
optional_policy(`
|
|
Chris PeBenito |
296273 |
auditadm_role_change(secadm_r)
|
|
Chris PeBenito |
296273 |
')
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
296273 |
optional_policy(`
|
|
Chris PeBenito |
6224fc |
dmesg_exec(secadm_t)
|
|
Chris PeBenito |
6224fc |
')
|
|
Chris PeBenito |
6224fc |
|
|
Chris PeBenito |
6224fc |
optional_policy(`
|
|
Chris PeBenito |
296273 |
netlabel_run_mgmt(secadm_t, secadm_r)
|
|
Chris PeBenito |
e9c6cd |
')
|
|
Chris PeBenito |
e9c6cd |
|
|
Chris PeBenito |
e9c6cd |
optional_policy(`
|
|
Chris PeBenito |
296273 |
screen_role_template(secadm, secadm_r, secadm_t)
|
|
Chris PeBenito |
296273 |
')
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
296273 |
optional_policy(`
|
|
Chris PeBenito |
296273 |
su_role_template(secadm, secadm_r, secadm_t)
|
|
Chris PeBenito |
296273 |
')
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
296273 |
optional_policy(`
|
|
Chris PeBenito |
296273 |
sudo_role_template(secadm, secadm_r, secadm_t)
|
|
Chris PeBenito |
296273 |
')
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
296273 |
optional_policy(`
|
|
Chris PeBenito |
296273 |
sysadm_role_change(secadm_r)
|
|
Chris PeBenito |
296273 |
')
|
|
Chris PeBenito |
296273 |
|