|
Chris PeBenito |
29af4c |
policy_module(smartmon, 1.10.0)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Declarations
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
b84d6e |
## <desc>
|
|
Chris PeBenito |
b84d6e |
##
|
|
Chris PeBenito |
b84d6e |
## Enable additional permissions needed to support
|
|
Chris PeBenito |
b84d6e |
## devices on 3ware controllers.
|
|
Chris PeBenito |
b84d6e |
##
|
|
Chris PeBenito |
b84d6e |
## </desc>
|
|
Chris PeBenito |
b84d6e |
gen_tunable(smartmon_3ware, false)
|
|
Chris PeBenito |
b84d6e |
|
|
Chris PeBenito |
17de1b |
type fsdaemon_t;
|
|
Chris PeBenito |
17de1b |
type fsdaemon_exec_t;
|
|
Chris PeBenito |
0bfccd |
init_daemon_domain(fsdaemon_t, fsdaemon_exec_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
967fd1 |
type fsdaemon_initrc_exec_t;
|
|
Chris PeBenito |
967fd1 |
init_script_file(fsdaemon_initrc_exec_t)
|
|
Chris PeBenito |
967fd1 |
|
|
Chris PeBenito |
17de1b |
type fsdaemon_var_run_t;
|
|
Chris PeBenito |
17de1b |
files_pid_file(fsdaemon_var_run_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type fsdaemon_tmp_t;
|
|
Chris PeBenito |
17de1b |
files_tmp_file(fsdaemon_tmp_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
b84d6e |
ifdef(`enable_mls',`
|
|
Chris PeBenito |
b84d6e |
init_ranged_daemon_domain(fsdaemon_t, fsdaemon_exec_t, mls_systemhigh)
|
|
Chris PeBenito |
b84d6e |
')
|
|
Chris PeBenito |
b84d6e |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Local policy
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
b84d6e |
allow fsdaemon_t self:capability { setpcap setgid sys_rawio sys_admin };
|
|
Chris PeBenito |
17de1b |
dontaudit fsdaemon_t self:capability sys_tty_config;
|
|
Chris PeBenito |
b84d6e |
allow fsdaemon_t self:process { getcap setcap signal_perms };
|
|
Chris PeBenito |
c0868a |
allow fsdaemon_t self:fifo_file rw_fifo_file_perms;
|
|
Chris PeBenito |
17de1b |
allow fsdaemon_t self:unix_dgram_socket create_socket_perms;
|
|
Chris PeBenito |
17de1b |
allow fsdaemon_t self:unix_stream_socket create_stream_socket_perms;
|
|
Chris PeBenito |
17de1b |
allow fsdaemon_t self:udp_socket create_socket_perms;
|
|
Chris PeBenito |
967fd1 |
allow fsdaemon_t self:netlink_route_socket r_netlink_socket_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
0bfccd |
manage_dirs_pattern(fsdaemon_t, fsdaemon_tmp_t, fsdaemon_tmp_t)
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern(fsdaemon_t, fsdaemon_tmp_t, fsdaemon_tmp_t)
|
|
Chris PeBenito |
17de1b |
files_tmp_filetrans(fsdaemon_t, fsdaemon_tmp_t, { file dir })
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern(fsdaemon_t, fsdaemon_var_run_t, fsdaemon_var_run_t)
|
|
Chris PeBenito |
0bfccd |
files_pid_filetrans(fsdaemon_t, fsdaemon_var_run_t, file)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
kernel_read_kernel_sysctls(fsdaemon_t)
|
|
Chris PeBenito |
17de1b |
kernel_read_software_raid_state(fsdaemon_t)
|
|
Chris PeBenito |
17de1b |
kernel_read_system_state(fsdaemon_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
corecmd_exec_all_executables(fsdaemon_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_unlabeled(fsdaemon_t)
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_netlabel(fsdaemon_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_generic_if(fsdaemon_t)
|
|
Chris PeBenito |
c12621 |
corenet_udp_sendrecv_generic_node(fsdaemon_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_all_ports(fsdaemon_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
dev_read_sysfs(fsdaemon_t)
|
|
Chris PeBenito |
7a5e2d |
dev_read_urand(fsdaemon_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
domain_use_interactive_fds(fsdaemon_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
files_exec_etc_files(fsdaemon_t)
|
|
Chris PeBenito |
17de1b |
files_read_etc_runtime_files(fsdaemon_t)
|
|
Chris PeBenito |
17de1b |
# for config
|
|
Chris PeBenito |
17de1b |
files_read_etc_files(fsdaemon_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
fs_getattr_all_fs(fsdaemon_t)
|
|
Chris PeBenito |
17de1b |
fs_search_auto_mountpoints(fsdaemon_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
f8233a |
mls_file_read_all_levels(fsdaemon_t)
|
|
Chris PeBenito |
b84d6e |
#mls_rangetrans_target(fsdaemon_t)
|
|
Chris PeBenito |
e2b84e |
|
|
Chris PeBenito |
17de1b |
storage_raw_read_fixed_disk(fsdaemon_t)
|
|
Chris PeBenito |
17de1b |
storage_raw_write_fixed_disk(fsdaemon_t)
|
|
Chris PeBenito |
e2b84e |
storage_raw_read_removable_device(fsdaemon_t)
|
|
Dan Walsh |
3eaa99 |
storage_read_scsi_generic(fsdaemon_t)
|
|
Dan Walsh |
3eaa99 |
storage_write_scsi_generic(fsdaemon_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
term_dontaudit_search_ptys(fsdaemon_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
libs_exec_ld_so(fsdaemon_t)
|
|
Chris PeBenito |
17de1b |
libs_exec_lib_files(fsdaemon_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
logging_send_syslog_msg(fsdaemon_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
miscfiles_read_localization(fsdaemon_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
b84d6e |
seutil_sigchld_newrole(fsdaemon_t)
|
|
Chris PeBenito |
b84d6e |
|
|
Chris PeBenito |
967fd1 |
sysnet_dns_name_resolve(fsdaemon_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
userdom_dontaudit_use_unpriv_user_fds(fsdaemon_t)
|
|
Chris PeBenito |
296273 |
userdom_dontaudit_search_user_home_dirs(fsdaemon_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
b84d6e |
tunable_policy(`smartmon_3ware',`
|
|
Chris PeBenito |
b84d6e |
allow fsdaemon_t self:process setfscreate;
|
|
Chris PeBenito |
b84d6e |
|
|
Chris PeBenito |
b84d6e |
storage_create_fixed_disk_dev(fsdaemon_t)
|
|
Chris PeBenito |
b84d6e |
storage_delete_fixed_disk_dev(fsdaemon_t)
|
|
Chris PeBenito |
b84d6e |
storage_dev_filetrans_fixed_disk(fsdaemon_t)
|
|
Chris PeBenito |
b84d6e |
|
|
Chris PeBenito |
b84d6e |
selinux_validate_context(fsdaemon_t)
|
|
Chris PeBenito |
b84d6e |
|
|
Chris PeBenito |
b84d6e |
seutil_read_file_contexts(fsdaemon_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
b84d6e |
mta_send_mail(fsdaemon_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
udev_read_db(fsdaemon_t)
|
|
Chris PeBenito |
17de1b |
')
|