|
Dominick Grift |
496d3f1 |
policy_module(smartmon, 1.11.3)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
########################################
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
# Declarations
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
## <desc>
|
|
Dominick Grift |
5cf3515 |
##
|
|
Dominick Grift |
5cf3515 |
## Determine whether smartmon can support
|
|
Dominick Grift |
5cf3515 |
## devices on 3ware controllers.
|
|
Dominick Grift |
5cf3515 |
##
|
|
|
1ec3d1a |
## </desc>
|
|
|
1ec3d1a |
gen_tunable(smartmon_3ware, false)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
type fsdaemon_t;
|
|
|
1ec3d1a |
type fsdaemon_exec_t;
|
|
|
1ec3d1a |
init_daemon_domain(fsdaemon_t, fsdaemon_exec_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
type fsdaemon_initrc_exec_t;
|
|
|
1ec3d1a |
init_script_file(fsdaemon_initrc_exec_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
type fsdaemon_var_run_t;
|
|
|
1ec3d1a |
files_pid_file(fsdaemon_var_run_t)
|
|
|
1ec3d1a |
|
|
Laurent Bigonville |
e334f7d |
type fsdaemon_var_lib_t;
|
|
Laurent Bigonville |
e334f7d |
files_type(fsdaemon_var_lib_t)
|
|
Laurent Bigonville |
e334f7d |
|
|
|
1ec3d1a |
type fsdaemon_tmp_t;
|
|
|
1ec3d1a |
files_tmp_file(fsdaemon_tmp_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
ifdef(`enable_mls',`
|
|
|
1ec3d1a |
init_ranged_daemon_domain(fsdaemon_t, fsdaemon_exec_t, mls_systemhigh)
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
########################################
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
# Local policy
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
allow fsdaemon_t self:capability { dac_override kill setpcap setgid sys_rawio sys_admin };
|
|
|
1ec3d1a |
dontaudit fsdaemon_t self:capability sys_tty_config;
|
|
|
1ec3d1a |
allow fsdaemon_t self:process { getcap setcap signal_perms };
|
|
|
1ec3d1a |
allow fsdaemon_t self:fifo_file rw_fifo_file_perms;
|
|
Dominick Grift |
5cf3515 |
allow fsdaemon_t self:unix_stream_socket { accept listen };
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
manage_dirs_pattern(fsdaemon_t, fsdaemon_tmp_t, fsdaemon_tmp_t)
|
|
|
1ec3d1a |
manage_files_pattern(fsdaemon_t, fsdaemon_tmp_t, fsdaemon_tmp_t)
|
|
|
1ec3d1a |
files_tmp_filetrans(fsdaemon_t, fsdaemon_tmp_t, { file dir })
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
manage_files_pattern(fsdaemon_t, fsdaemon_var_run_t, fsdaemon_var_run_t)
|
|
|
1ec3d1a |
files_pid_filetrans(fsdaemon_t, fsdaemon_var_run_t, file)
|
|
|
1ec3d1a |
|
|
Laurent Bigonville |
e334f7d |
manage_files_pattern(fsdaemon_t, fsdaemon_var_lib_t, fsdaemon_var_lib_t)
|
|
Laurent Bigonville |
e334f7d |
|
|
|
1ec3d1a |
kernel_read_kernel_sysctls(fsdaemon_t)
|
|
|
1ec3d1a |
kernel_read_network_state(fsdaemon_t)
|
|
|
1ec3d1a |
kernel_read_software_raid_state(fsdaemon_t)
|
|
|
1ec3d1a |
kernel_read_system_state(fsdaemon_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
corecmd_exec_all_executables(fsdaemon_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
corenet_all_recvfrom_netlabel(fsdaemon_t)
|
|
|
1ec3d1a |
corenet_udp_sendrecv_generic_if(fsdaemon_t)
|
|
|
1ec3d1a |
corenet_udp_sendrecv_generic_node(fsdaemon_t)
|
|
|
1ec3d1a |
corenet_udp_sendrecv_all_ports(fsdaemon_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
dev_read_sysfs(fsdaemon_t)
|
|
|
1ec3d1a |
dev_read_urand(fsdaemon_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
domain_use_interactive_fds(fsdaemon_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
files_exec_etc_files(fsdaemon_t)
|
|
|
1ec3d1a |
files_read_etc_runtime_files(fsdaemon_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
fs_getattr_all_fs(fsdaemon_t)
|
|
|
1ec3d1a |
fs_search_auto_mountpoints(fsdaemon_t)
|
|
|
1ec3d1a |
fs_read_removable_files(fsdaemon_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
mls_file_read_all_levels(fsdaemon_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
storage_create_fixed_disk_dev(fsdaemon_t)
|
|
|
1ec3d1a |
storage_dev_filetrans_named_fixed_disk(fsdaemon_t)
|
|
|
1ec3d1a |
storage_raw_read_fixed_disk(fsdaemon_t)
|
|
|
1ec3d1a |
storage_raw_write_fixed_disk(fsdaemon_t)
|
|
|
1ec3d1a |
storage_raw_read_removable_device(fsdaemon_t)
|
|
|
1ec3d1a |
storage_read_scsi_generic(fsdaemon_t)
|
|
|
1ec3d1a |
storage_write_scsi_generic(fsdaemon_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
term_dontaudit_search_ptys(fsdaemon_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
application_signull(fsdaemon_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
auth_read_passwd(fsdaemon_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
init_read_utmp(fsdaemon_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
libs_exec_ld_so(fsdaemon_t)
|
|
|
1ec3d1a |
libs_exec_lib_files(fsdaemon_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
logging_send_syslog_msg(fsdaemon_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
seutil_sigchld_newrole(fsdaemon_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
sysnet_dns_name_resolve(fsdaemon_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
userdom_dontaudit_use_unpriv_user_fds(fsdaemon_t)
|
|
|
1ec3d1a |
userdom_dontaudit_search_user_home_dirs(fsdaemon_t)
|
|
|
bf87f6f |
userdom_use_user_ptys(fsdaemon_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
tunable_policy(`smartmon_3ware',`
|
|
|
1ec3d1a |
allow fsdaemon_t self:process setfscreate;
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
storage_create_fixed_disk_dev(fsdaemon_t)
|
|
|
1ec3d1a |
storage_delete_fixed_disk_dev(fsdaemon_t)
|
|
|
1ec3d1a |
storage_dev_filetrans_fixed_disk(fsdaemon_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
selinux_validate_context(fsdaemon_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
seutil_read_file_contexts(fsdaemon_t)
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
optional_policy(`
|
|
|
1ec3d1a |
mta_send_mail(fsdaemon_t)
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
optional_policy(`
|
|
|
1ec3d1a |
udev_read_db(fsdaemon_t)
|
|
|
1ec3d1a |
')
|
|
|
5df9d29 |
|
|
|
5df9d29 |
optional_policy(`
|
|
|
5df9d29 |
virt_read_images(fsdaemon_t)
|
|
|
5df9d29 |
')
|