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

72 lines
1.5 KiB
Plaintext
Raw Normal View History

2005-11-28 17:46:29 +00:00
2005-12-09 16:38:39 +00:00
policy_module(rdisc,1.1.0)
2005-11-28 17:46:29 +00:00
########################################
#
# Declarations
#
type rdisc_t;
type rdisc_exec_t;
init_daemon_domain(rdisc_t,rdisc_exec_t)
########################################
#
# Local policy
#
allow rdisc_t self:capability net_raw;
dontaudit rdisc_t self:capability sys_tty_config;
allow rdisc_t self:process signal_perms;
allow rdisc_t self:unix_stream_socket create_stream_socket_perms;
allow rdisc_t self:udp_socket create_socket_perms;
allow rdisc_t self:rawip_socket create_socket_perms;
kernel_list_proc(rdisc_t)
kernel_read_proc_symlinks(rdisc_t)
kernel_read_kernel_sysctls(rdisc_t)
2005-11-28 17:46:29 +00:00
corenet_udp_sendrecv_generic_if(rdisc_t)
corenet_raw_sendrecv_generic_if(rdisc_t)
corenet_udp_sendrecv_all_nodes(rdisc_t)
corenet_raw_sendrecv_all_nodes(rdisc_t)
corenet_udp_sendrecv_all_ports(rdisc_t)
2005-12-06 19:59:50 +00:00
corenet_non_ipsec_sendrecv(rdisc_t)
2005-11-28 17:46:29 +00:00
corenet_udp_bind_all_nodes(rdisc_t)
dev_read_sysfs(rdisc_t)
fs_search_auto_mountpoints(rdisc_t)
term_dontaudit_use_console(rdisc_t)
2006-02-20 21:33:25 +00:00
domain_use_interactive_fds(rdisc_t)
2005-11-28 17:46:29 +00:00
files_read_etc_files(rdisc_t)
init_use_fds(rdisc_t)
2006-02-02 21:08:12 +00:00
init_use_script_ptys(rdisc_t)
2005-11-28 17:46:29 +00:00
libs_use_ld_so(rdisc_t)
libs_use_shared_libs(rdisc_t)
logging_send_syslog_msg(rdisc_t)
sysnet_read_config(rdisc_t)
2006-02-20 21:33:25 +00:00
userdom_dontaudit_use_unpriv_user_fds(rdisc_t)
2005-11-28 17:46:29 +00:00
ifdef(`targeted_policy',`
2006-02-02 21:08:12 +00:00
term_dontaudit_use_unallocated_ttys(rdisc_t)
term_dontaudit_use_generic_ptys(rdisc_t)
files_dontaudit_read_root_files(rdisc_t)
2005-11-28 17:46:29 +00:00
')
optional_policy(`
2005-11-28 17:46:29 +00:00
seutil_sigchld_newrole(rdisc_t)
')
optional_policy(`
2005-11-28 17:46:29 +00:00
udev_read_db(rdisc_t)
')