Chris PeBenito 871b68
Chris PeBenito fb63d0
policy_module(smartmon,1.0.1)
Chris PeBenito 871b68
Chris PeBenito 871b68
########################################
Chris PeBenito 871b68
#
Chris PeBenito 871b68
# Declarations
Chris PeBenito 871b68
#
Chris PeBenito 871b68
Chris PeBenito 871b68
type fsdaemon_t;
Chris PeBenito 871b68
type fsdaemon_exec_t;
Chris PeBenito 871b68
init_daemon_domain(fsdaemon_t,fsdaemon_exec_t)
Chris PeBenito 871b68
Chris PeBenito 871b68
type fsdaemon_var_run_t;
Chris PeBenito 871b68
files_pid_file(fsdaemon_var_run_t)
Chris PeBenito 871b68
Chris PeBenito 871b68
type fsdaemon_tmp_t;
Chris PeBenito 871b68
files_tmp_file(fsdaemon_tmp_t)
Chris PeBenito 871b68
Chris PeBenito 871b68
########################################
Chris PeBenito 871b68
#
Chris PeBenito 871b68
# Local policy
Chris PeBenito 871b68
#
Chris PeBenito 871b68
Chris PeBenito 871b68
allow fsdaemon_t self:capability { setgid sys_rawio sys_admin };
Chris PeBenito 871b68
dontaudit fsdaemon_t self:capability sys_tty_config;
Chris PeBenito 871b68
allow fsdaemon_t self:process signal_perms;
Chris PeBenito 871b68
allow fsdaemon_t self:fifo_file rw_file_perms;
Chris PeBenito 871b68
allow fsdaemon_t self:unix_dgram_socket create_socket_perms;
Chris PeBenito 871b68
allow fsdaemon_t self:unix_stream_socket create_stream_socket_perms;
Chris PeBenito 871b68
allow fsdaemon_t self:udp_socket create_socket_perms;
Chris PeBenito 871b68
Chris PeBenito 871b68
allow fsdaemon_t fsdaemon_tmp_t:dir create_dir_perms;
Chris PeBenito 871b68
allow fsdaemon_t fsdaemon_tmp_t:file create_file_perms;
Chris PeBenito 103fe2
files_tmp_filetrans(fsdaemon_t, fsdaemon_tmp_t, { file dir })
Chris PeBenito 871b68
Chris PeBenito 871b68
allow fsdaemon_t fsdaemon_var_run_t:file create_file_perms;
Chris PeBenito 871b68
allow fsdaemon_t fsdaemon_var_run_t:dir rw_dir_perms;
Chris PeBenito 1c1ac6
files_pid_filetrans(fsdaemon_t,fsdaemon_var_run_t,file)
Chris PeBenito 871b68
Chris PeBenito 445522
kernel_read_kernel_sysctls(fsdaemon_t)
Chris PeBenito 871b68
kernel_read_software_raid_state(fsdaemon_t)
Chris PeBenito 871b68
kernel_read_system_state(fsdaemon_t)
Chris PeBenito 871b68
Chris PeBenito fb63d0
corecmd_exec_all_executables(fsdaemon_t)
Chris PeBenito 871b68
Chris PeBenito 871b68
corenet_non_ipsec_sendrecv(fsdaemon_t)
Chris PeBenito 871b68
corenet_udp_sendrecv_generic_if(fsdaemon_t)
Chris PeBenito 871b68
corenet_raw_sendrecv_generic_if(fsdaemon_t)
Chris PeBenito 871b68
corenet_udp_sendrecv_all_nodes(fsdaemon_t)
Chris PeBenito 871b68
corenet_raw_sendrecv_all_nodes(fsdaemon_t)
Chris PeBenito 871b68
corenet_udp_sendrecv_all_ports(fsdaemon_t)
Chris PeBenito 871b68
corenet_udp_bind_all_nodes(fsdaemon_t)
Chris PeBenito 871b68
Chris PeBenito 871b68
dev_read_sysfs(fsdaemon_t)
Chris PeBenito 871b68
Chris PeBenito 15722e
domain_use_interactive_fds(fsdaemon_t)
Chris PeBenito 871b68
Chris PeBenito 871b68
files_exec_etc_files(fsdaemon_t)
Chris PeBenito 871b68
files_read_etc_runtime_files(fsdaemon_t)
Chris PeBenito 871b68
# for config
Chris PeBenito 871b68
files_read_etc_files(fsdaemon_t)
Chris PeBenito 871b68
Chris PeBenito 871b68
fs_getattr_all_fs(fsdaemon_t)
Chris PeBenito 871b68
fs_search_auto_mountpoints(fsdaemon_t)
Chris PeBenito 871b68
Chris PeBenito 871b68
storage_raw_read_fixed_disk(fsdaemon_t)
Chris PeBenito 871b68
storage_raw_write_fixed_disk(fsdaemon_t)
Chris PeBenito 871b68
Chris PeBenito 871b68
term_dontaudit_use_console(fsdaemon_t)
Chris PeBenito 871b68
term_dontaudit_search_ptys(fsdaemon_t)
Chris PeBenito 871b68
Chris PeBenito 1c1ac6
init_use_fds(fsdaemon_t)
Chris PeBenito 1815ba
init_use_script_ptys(fsdaemon_t)
Chris PeBenito 871b68
Chris PeBenito 871b68
libs_use_ld_so(fsdaemon_t)
Chris PeBenito 871b68
libs_use_shared_libs(fsdaemon_t)
Chris PeBenito 871b68
libs_exec_ld_so(fsdaemon_t)
Chris PeBenito 871b68
libs_exec_lib_files(fsdaemon_t)
Chris PeBenito 871b68
Chris PeBenito 871b68
logging_send_syslog_msg(fsdaemon_t)
Chris PeBenito 871b68
Chris PeBenito 871b68
miscfiles_read_localization(fsdaemon_t)
Chris PeBenito 871b68
Chris PeBenito 871b68
sysnet_read_config(fsdaemon_t)
Chris PeBenito 871b68
Chris PeBenito 15722e
userdom_dontaudit_use_unpriv_user_fds(fsdaemon_t)
Chris PeBenito 103fe2
userdom_dontaudit_search_sysadm_home_dirs(fsdaemon_t)
Chris PeBenito 871b68
Chris PeBenito 871b68
ifdef(`targeted_policy',`
Chris PeBenito 1815ba
	term_dontaudit_use_unallocated_ttys(fsdaemon_t)
Chris PeBenito 1815ba
	term_dontaudit_use_generic_ptys(fsdaemon_t)
Chris PeBenito 9e04f5
	files_dontaudit_read_root_files(fsdaemon_t)
Chris PeBenito 871b68
')
Chris PeBenito 871b68
Chris PeBenito bb7170
optional_policy(`
Chris PeBenito 871b68
        mta_send_mail(fsdaemon_t)
Chris PeBenito 871b68
')
Chris PeBenito 871b68
Chris PeBenito bb7170
optional_policy(`
Chris PeBenito 871b68
	seutil_sigchld_newrole(fsdaemon_t)
Chris PeBenito 871b68
')
Chris PeBenito 871b68
Chris PeBenito bb7170
optional_policy(`
Chris PeBenito 871b68
	udev_read_db(fsdaemon_t)
Chris PeBenito 871b68
')