Chris PeBenito e9c6cd
Chris PeBenito 6224fc
policy_module(secadm, 1.0.1)
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 e9c6cd
userdom_security_admin_template(secadm_t, secadm_r, { secadm_tty_device_t secadm_devpts_t })
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 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 e9c6cd
	aide_run(secadm_t, secadm_r, { secadm_tty_device_t secadm_devpts_t })
Chris PeBenito e9c6cd
')
Chris PeBenito e9c6cd
Chris PeBenito e9c6cd
optional_policy(`
Chris PeBenito e9c6cd
	auditadm_role_change_template(secadm)
Chris PeBenito e9c6cd
')
Chris PeBenito e9c6cd
Chris PeBenito e9c6cd
optional_policy(`
Chris PeBenito 6224fc
	dmesg_exec(secadm_t)
Chris PeBenito 6224fc
')
Chris PeBenito 6224fc
Chris PeBenito 6224fc
optional_policy(`
Chris PeBenito e9c6cd
	netlabel_run_mgmt(secadm_t, secadm_r, { secadm_tty_device_t secadm_devpts_t })
Chris PeBenito e9c6cd
')
Chris PeBenito e9c6cd
Chris PeBenito e9c6cd
optional_policy(`
Chris PeBenito e9c6cd
	staff_dontaudit_append_home_content_files(secadm_t)
Chris PeBenito e9c6cd
')
Chris PeBenito e9c6cd
Chris PeBenito e9c6cd
optional_policy(`
Chris PeBenito e9c6cd
	sysadm_role_change_template(secadm)
Chris PeBenito e9c6cd
	sysadm_dontaudit_read_home_content_files(secadm_t)
Chris PeBenito e9c6cd
')
Chris PeBenito e9c6cd