|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
556556 |
policy_module(raid, 1.6.1)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Declarations
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type mdadm_t;
|
|
Chris PeBenito |
17de1b |
type mdadm_exec_t;
|
|
Chris PeBenito |
17de1b |
init_daemon_domain(mdadm_t,mdadm_exec_t)
|
|
Chris PeBenito |
17de1b |
role system_r types mdadm_t;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type mdadm_var_run_t;
|
|
Chris PeBenito |
17de1b |
files_pid_file(mdadm_var_run_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Local policy
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow mdadm_t self:capability { dac_override sys_admin ipc_lock };
|
|
Chris PeBenito |
17de1b |
dontaudit mdadm_t self:capability sys_tty_config;
|
|
Chris PeBenito |
17de1b |
allow mdadm_t self:process { sigchld sigkill sigstop signull signal };
|
|
Chris PeBenito |
c0868a |
allow mdadm_t self:fifo_file rw_fifo_file_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
c0868a |
manage_files_pattern(mdadm_t,mdadm_var_run_t,mdadm_var_run_t)
|
|
Chris PeBenito |
17de1b |
files_pid_filetrans(mdadm_t,mdadm_var_run_t,file)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
kernel_read_system_state(mdadm_t)
|
|
Chris PeBenito |
17de1b |
kernel_read_kernel_sysctls(mdadm_t)
|
|
Chris PeBenito |
17de1b |
kernel_rw_software_raid_state(mdadm_t)
|
|
Chris PeBenito |
e2b84e |
kernel_getattr_core_if(mdadm_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
dev_read_sysfs(mdadm_t)
|
|
Chris PeBenito |
17de1b |
# Ignore attempts to read every device file
|
|
Chris PeBenito |
17de1b |
dev_dontaudit_getattr_all_blk_files(mdadm_t)
|
|
Chris PeBenito |
17de1b |
dev_dontaudit_getattr_all_chr_files(mdadm_t)
|
|
Chris PeBenito |
e2b84e |
dev_dontaudit_getattr_generic_files(mdadm_t)
|
|
Chris PeBenito |
d6d16b |
dev_dontaudit_getattr_generic_chr_files(mdadm_t)
|
|
Chris PeBenito |
d6d16b |
dev_dontaudit_getattr_generic_blk_files(mdadm_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
fs_search_auto_mountpoints(mdadm_t)
|
|
Chris PeBenito |
17de1b |
fs_dontaudit_list_tmpfs(mdadm_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# RAID block device access
|
|
Chris PeBenito |
17de1b |
storage_manage_fixed_disk(mdadm_t)
|
|
Chris PeBenito |
d6d16b |
storage_dev_filetrans_fixed_disk(mdadm_t)
|
|
Chris PeBenito |
d534d3 |
storage_read_scsi_generic(mdadm_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
term_dontaudit_list_ptys(mdadm_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# Helper program access
|
|
Chris PeBenito |
17de1b |
corecmd_exec_bin(mdadm_t)
|
|
Chris PeBenito |
d9845a |
corecmd_exec_shell(mdadm_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
domain_use_interactive_fds(mdadm_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
files_read_etc_files(mdadm_t)
|
|
Chris PeBenito |
17de1b |
files_read_etc_runtime_files(mdadm_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
init_dontaudit_getattr_initctl(mdadm_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
libs_use_ld_so(mdadm_t)
|
|
Chris PeBenito |
17de1b |
libs_use_shared_libs(mdadm_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
logging_send_syslog_msg(mdadm_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
miscfiles_read_localization(mdadm_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
userdom_dontaudit_use_unpriv_user_fds(mdadm_t)
|
|
Chris PeBenito |
72f82c |
userdom_dontaudit_search_all_users_home_content(mdadm_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
mta_send_mail(mdadm_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
e9c6cd |
sysadm_dontaudit_use_ttys(mdadm_t)
|
|
Chris PeBenito |
e9c6cd |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
d6d16b |
gpm_dontaudit_getattr_gpmctl(mdadm_t)
|
|
Chris PeBenito |
d6d16b |
')
|
|
Chris PeBenito |
d6d16b |
|
|
Chris PeBenito |
d6d16b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
seutil_sigchld_newrole(mdadm_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
udev_read_db(mdadm_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
556556 |
|
|
Chris PeBenito |
556556 |
optional_policy(`
|
|
Chris PeBenito |
556556 |
unconfined_domain(mdadm_t)
|
|
Chris PeBenito |
556556 |
')
|