Chris PeBenito 70b8a7
Chris PeBenito 141cff
policy_module(ddclient,1.0.1)
Chris PeBenito 70b8a7
Chris PeBenito 70b8a7
########################################
Chris PeBenito 70b8a7
#
Chris PeBenito 70b8a7
# Declarations
Chris PeBenito 70b8a7
#
Chris PeBenito 70b8a7
Chris PeBenito 70b8a7
type ddclient_t;
Chris PeBenito 70b8a7
type ddclient_exec_t;
Chris PeBenito 70b8a7
init_daemon_domain(ddclient_t,ddclient_exec_t)
Chris PeBenito 70b8a7
Chris PeBenito 70b8a7
type ddclient_etc_t;
Chris PeBenito 70b8a7
files_type(ddclient_etc_t)
Chris PeBenito 70b8a7
Chris PeBenito 70b8a7
type ddclient_log_t;
Chris PeBenito 70b8a7
logging_log_file(ddclient_log_t)
Chris PeBenito 70b8a7
Chris PeBenito 70b8a7
type ddclient_var_t;
Chris PeBenito 70b8a7
files_type(ddclient_var_t)
Chris PeBenito 70b8a7
Chris PeBenito 70b8a7
type ddclient_var_lib_t;
Chris PeBenito 70b8a7
files_type(ddclient_var_lib_t)
Chris PeBenito 70b8a7
Chris PeBenito 70b8a7
type ddclient_var_run_t;
Chris PeBenito 70b8a7
files_pid_file(ddclient_var_run_t)
Chris PeBenito 70b8a7
Chris PeBenito 70b8a7
########################################
Chris PeBenito 70b8a7
#
Chris PeBenito 70b8a7
# Declarations
Chris PeBenito 70b8a7
#
Chris PeBenito 70b8a7
Chris PeBenito 70b8a7
dontaudit ddclient_t self:capability sys_tty_config;
Chris PeBenito 70b8a7
allow ddclient_t self:process signal_perms;
Chris PeBenito 70b8a7
allow ddclient_t self:fifo_file rw_file_perms;
Chris PeBenito 70b8a7
allow ddclient_t self:tcp_socket create_socket_perms;
Chris PeBenito 70b8a7
allow ddclient_t self:udp_socket create_socket_perms;
Chris PeBenito 70b8a7
Chris PeBenito 70b8a7
allow ddclient_t ddclient_etc_t:file r_file_perms;
Chris PeBenito 70b8a7
Chris PeBenito 70b8a7
allow ddclient_t ddclient_log_t:file manage_file_perms;
Chris PeBenito 70b8a7
logging_log_filetrans(ddclient_t,ddclient_log_t,file)
Chris PeBenito 70b8a7
Chris PeBenito 70b8a7
allow ddclient_t ddclient_var_t:dir manage_dir_perms;
Chris PeBenito 70b8a7
allow ddclient_t ddclient_var_t:file manage_file_perms;
Chris PeBenito 70b8a7
allow ddclient_t ddclient_var_t:lnk_file create_lnk_perms;
Chris PeBenito 70b8a7
allow ddclient_t ddclient_var_t:sock_file manage_file_perms;
Chris PeBenito 70b8a7
allow ddclient_t ddclient_var_t:fifo_file manage_file_perms;
Chris PeBenito 70b8a7
files_var_filetrans(ddclient_t,ddclient_var_t,{ file lnk_file sock_file fifo_file })
Chris PeBenito 70b8a7
Chris PeBenito 70b8a7
allow ddclient_t ddclient_var_lib_t:file manage_file_perms;
Chris PeBenito 70b8a7
allow ddclient_t ddclient_var_lib_t:dir rw_dir_perms;
Chris PeBenito 70b8a7
files_var_lib_filetrans(ddclient_t,ddclient_var_lib_t,file)
Chris PeBenito 70b8a7
Chris PeBenito 70b8a7
allow ddclient_t ddclient_var_run_t:file manage_file_perms;
Chris PeBenito 70b8a7
allow ddclient_t ddclient_var_run_t:dir rw_dir_perms;
Chris PeBenito 70b8a7
files_pid_filetrans(ddclient_t,ddclient_var_run_t,file)
Chris PeBenito 70b8a7
Chris PeBenito 70b8a7
kernel_read_system_state(ddclient_t)
Chris PeBenito 70b8a7
kernel_read_network_state(ddclient_t)
Chris PeBenito 70b8a7
kernel_read_software_raid_state(ddclient_t)
Chris PeBenito 70b8a7
kernel_getattr_core_if(ddclient_t)
Chris PeBenito 70b8a7
kernel_getattr_message_if(ddclient_t)
Chris PeBenito 70b8a7
kernel_read_kernel_sysctls(ddclient_t)
Chris PeBenito 70b8a7
Chris PeBenito 70b8a7
corecmd_exec_shell(ddclient_t)
Chris PeBenito 70b8a7
corecmd_exec_bin(ddclient_t)
Chris PeBenito 70b8a7
Chris PeBenito 141cff
corenet_non_ipsec_sendrecv(ddclient_t)
Chris PeBenito 70b8a7
corenet_tcp_sendrecv_generic_if(ddclient_t)
Chris PeBenito 70b8a7
corenet_udp_sendrecv_generic_if(ddclient_t)
Chris PeBenito 70b8a7
corenet_tcp_sendrecv_all_nodes(ddclient_t)
Chris PeBenito 70b8a7
corenet_udp_sendrecv_all_nodes(ddclient_t)
Chris PeBenito 70b8a7
corenet_tcp_sendrecv_all_ports(ddclient_t)
Chris PeBenito 70b8a7
corenet_udp_sendrecv_all_ports(ddclient_t)
Chris PeBenito 70b8a7
corenet_tcp_connect_all_ports(ddclient_t)
Chris PeBenito 141cff
corenet_sendrecv_all_client_packets(ddclient_t)
Chris PeBenito 70b8a7
Chris PeBenito 70b8a7
dev_read_sysfs(ddclient_t)
Chris PeBenito 70b8a7
dev_read_urand(ddclient_t)
Chris PeBenito 70b8a7
Chris PeBenito 70b8a7
domain_use_interactive_fds(ddclient_t)
Chris PeBenito 70b8a7
Chris PeBenito 70b8a7
files_read_etc_files(ddclient_t)
Chris PeBenito 70b8a7
files_read_etc_runtime_files(ddclient_t)
Chris PeBenito 70b8a7
files_read_usr_files(ddclient_t)
Chris PeBenito 70b8a7
Chris PeBenito 70b8a7
fs_getattr_all_fs(ddclient_t)
Chris PeBenito 70b8a7
fs_search_auto_mountpoints(ddclient_t)
Chris PeBenito 70b8a7
Chris PeBenito 70b8a7
term_dontaudit_use_console(ddclient_t)
Chris PeBenito 70b8a7
Chris PeBenito 70b8a7
init_use_fds(ddclient_t)
Chris PeBenito 70b8a7
init_use_script_ptys(ddclient_t)
Chris PeBenito 70b8a7
Chris PeBenito 70b8a7
libs_use_ld_so(ddclient_t)
Chris PeBenito 70b8a7
libs_use_shared_libs(ddclient_t)
Chris PeBenito 70b8a7
Chris PeBenito 70b8a7
logging_send_syslog_msg(ddclient_t)
Chris PeBenito 70b8a7
Chris PeBenito 70b8a7
miscfiles_read_localization(ddclient_t)
Chris PeBenito 70b8a7
Chris PeBenito 70b8a7
sysnet_exec_ifconfig(ddclient_t)
Chris PeBenito 70b8a7
sysnet_read_config(ddclient_t)
Chris PeBenito 70b8a7
Chris PeBenito 70b8a7
userdom_dontaudit_use_unpriv_user_fds(ddclient_t)
Chris PeBenito 70b8a7
userdom_dontaudit_search_sysadm_home_dirs(ddclient_t)
Chris PeBenito 70b8a7
Chris PeBenito 70b8a7
ifdef(`targeted_policy',`
Chris PeBenito 70b8a7
	term_dontaudit_use_unallocated_ttys(ddclient_t)
Chris PeBenito 70b8a7
	term_dontaudit_use_generic_ptys(ddclient_t)
Chris PeBenito 70b8a7
	files_dontaudit_read_root_files(ddclient_t)
Chris PeBenito 70b8a7
')
Chris PeBenito 70b8a7
Chris PeBenito 70b8a7
optional_policy(`
Chris PeBenito 70b8a7
	seutil_sigchld_newrole(ddclient_t)
Chris PeBenito 70b8a7
')
Chris PeBenito 70b8a7
Chris PeBenito 70b8a7
optional_policy(`
Chris PeBenito 70b8a7
	udev_read_db(ddclient_t)
Chris PeBenito 70b8a7
')