selinux-refpolicy/policy/modules/services/ddclient.te

111 lines
3.0 KiB
Plaintext
Raw Normal View History

2006-04-25 17:50:31 +00:00
2008-07-02 14:07:57 +00:00
policy_module(ddclient, 1.5.0)
2006-04-25 17:50:31 +00:00
########################################
#
# Declarations
#
type ddclient_t;
type ddclient_exec_t;
init_daemon_domain(ddclient_t, ddclient_exec_t)
2006-04-25 17:50:31 +00:00
type ddclient_etc_t;
files_type(ddclient_etc_t)
type ddclient_log_t;
logging_log_file(ddclient_log_t)
type ddclient_var_t;
files_type(ddclient_var_t)
type ddclient_var_lib_t;
files_type(ddclient_var_lib_t)
type ddclient_var_run_t;
files_pid_file(ddclient_var_run_t)
########################################
#
# Declarations
#
dontaudit ddclient_t self:capability sys_tty_config;
allow ddclient_t self:process signal_perms;
2006-12-12 20:08:08 +00:00
allow ddclient_t self:fifo_file rw_fifo_file_perms;
2006-04-25 17:50:31 +00:00
allow ddclient_t self:tcp_socket create_socket_perms;
allow ddclient_t self:udp_socket create_socket_perms;
2006-12-12 20:08:08 +00:00
allow ddclient_t ddclient_etc_t:file read_file_perms;
2006-04-25 17:50:31 +00:00
allow ddclient_t ddclient_log_t:file manage_file_perms;
logging_log_filetrans(ddclient_t,ddclient_log_t,file)
manage_dirs_pattern(ddclient_t, ddclient_var_t, ddclient_var_t)
manage_files_pattern(ddclient_t, ddclient_var_t, ddclient_var_t)
manage_lnk_files_pattern(ddclient_t, ddclient_var_t, ddclient_var_t)
manage_fifo_files_pattern(ddclient_t, ddclient_var_t, ddclient_var_t)
manage_sock_files_pattern(ddclient_t, ddclient_var_t, ddclient_var_t)
files_var_filetrans(ddclient_t, ddclient_var_t, { file lnk_file sock_file fifo_file })
2006-04-25 17:50:31 +00:00
manage_files_pattern(ddclient_t, ddclient_var_lib_t, ddclient_var_lib_t)
files_var_lib_filetrans(ddclient_t, ddclient_var_lib_t, file)
2006-04-25 17:50:31 +00:00
manage_files_pattern(ddclient_t, ddclient_var_run_t, ddclient_var_run_t)
files_pid_filetrans(ddclient_t, ddclient_var_run_t, file)
2006-04-25 17:50:31 +00:00
kernel_read_system_state(ddclient_t)
kernel_read_network_state(ddclient_t)
kernel_read_software_raid_state(ddclient_t)
kernel_getattr_core_if(ddclient_t)
kernel_getattr_message_if(ddclient_t)
kernel_read_kernel_sysctls(ddclient_t)
corecmd_exec_shell(ddclient_t)
corecmd_exec_bin(ddclient_t)
corenet_all_recvfrom_unlabeled(ddclient_t)
corenet_all_recvfrom_netlabel(ddclient_t)
2006-04-25 17:50:31 +00:00
corenet_tcp_sendrecv_generic_if(ddclient_t)
corenet_udp_sendrecv_generic_if(ddclient_t)
corenet_tcp_sendrecv_all_nodes(ddclient_t)
corenet_udp_sendrecv_all_nodes(ddclient_t)
corenet_tcp_sendrecv_all_ports(ddclient_t)
corenet_udp_sendrecv_all_ports(ddclient_t)
corenet_tcp_connect_all_ports(ddclient_t)
2006-05-30 19:46:34 +00:00
corenet_sendrecv_all_client_packets(ddclient_t)
2006-04-25 17:50:31 +00:00
dev_read_sysfs(ddclient_t)
dev_read_urand(ddclient_t)
domain_use_interactive_fds(ddclient_t)
files_read_etc_files(ddclient_t)
files_read_etc_runtime_files(ddclient_t)
files_read_usr_files(ddclient_t)
fs_getattr_all_fs(ddclient_t)
fs_search_auto_mountpoints(ddclient_t)
libs_use_ld_so(ddclient_t)
libs_use_shared_libs(ddclient_t)
logging_send_syslog_msg(ddclient_t)
miscfiles_read_localization(ddclient_t)
sysnet_exec_ifconfig(ddclient_t)
sysnet_read_config(ddclient_t)
userdom_dontaudit_use_unpriv_user_fds(ddclient_t)
sysadm_dontaudit_search_home_dirs(ddclient_t)
2006-04-25 17:50:31 +00:00
optional_policy(`
seutil_sigchld_newrole(ddclient_t)
')
optional_policy(`
udev_read_db(ddclient_t)
')