Chris PeBenito 19ff64
Chris PeBenito bd7037
policy_module(rdisc,1.0.1)
Chris PeBenito 19ff64
Chris PeBenito 19ff64
########################################
Chris PeBenito 19ff64
#
Chris PeBenito 19ff64
# Declarations
Chris PeBenito 19ff64
#
Chris PeBenito 19ff64
Chris PeBenito 19ff64
type rdisc_t;
Chris PeBenito 19ff64
type rdisc_exec_t;
Chris PeBenito 19ff64
init_daemon_domain(rdisc_t,rdisc_exec_t)
Chris PeBenito 19ff64
Chris PeBenito 19ff64
########################################
Chris PeBenito 19ff64
#
Chris PeBenito 19ff64
# Local policy
Chris PeBenito 19ff64
#
Chris PeBenito 19ff64
Chris PeBenito 19ff64
allow rdisc_t self:capability net_raw;
Chris PeBenito 19ff64
dontaudit rdisc_t self:capability sys_tty_config;
Chris PeBenito 19ff64
allow rdisc_t self:process signal_perms;
Chris PeBenito 19ff64
allow rdisc_t self:unix_stream_socket create_stream_socket_perms;
Chris PeBenito 19ff64
allow rdisc_t self:udp_socket create_socket_perms;
Chris PeBenito 19ff64
allow rdisc_t self:rawip_socket create_socket_perms;
Chris PeBenito 19ff64
Chris PeBenito 19ff64
kernel_list_proc(rdisc_t)
Chris PeBenito 19ff64
kernel_read_proc_symlinks(rdisc_t)
Chris PeBenito 19ff64
kernel_read_kernel_sysctl(rdisc_t)
Chris PeBenito 19ff64
Chris PeBenito 19ff64
corenet_udp_sendrecv_generic_if(rdisc_t)
Chris PeBenito 19ff64
corenet_raw_sendrecv_generic_if(rdisc_t)
Chris PeBenito 19ff64
corenet_udp_sendrecv_all_nodes(rdisc_t)
Chris PeBenito 19ff64
corenet_raw_sendrecv_all_nodes(rdisc_t)
Chris PeBenito 19ff64
corenet_udp_sendrecv_all_ports(rdisc_t)
Chris PeBenito bd7037
corenet_non_ipsec_sendrecv(rdisc_t)
Chris PeBenito 19ff64
corenet_udp_bind_all_nodes(rdisc_t)
Chris PeBenito 19ff64
Chris PeBenito 19ff64
dev_read_sysfs(rdisc_t)
Chris PeBenito 19ff64
Chris PeBenito 19ff64
fs_search_auto_mountpoints(rdisc_t)
Chris PeBenito 19ff64
Chris PeBenito 19ff64
term_dontaudit_use_console(rdisc_t)
Chris PeBenito 19ff64
Chris PeBenito 19ff64
domain_use_wide_inherit_fd(rdisc_t)
Chris PeBenito 19ff64
Chris PeBenito 19ff64
files_read_etc_files(rdisc_t)
Chris PeBenito 19ff64
Chris PeBenito 19ff64
init_use_fd(rdisc_t)
Chris PeBenito 19ff64
init_use_script_pty(rdisc_t)
Chris PeBenito 19ff64
Chris PeBenito 19ff64
libs_use_ld_so(rdisc_t)
Chris PeBenito 19ff64
libs_use_shared_libs(rdisc_t)
Chris PeBenito 19ff64
Chris PeBenito 19ff64
logging_send_syslog_msg(rdisc_t)
Chris PeBenito 19ff64
Chris PeBenito 19ff64
sysnet_read_config(rdisc_t)
Chris PeBenito 19ff64
Chris PeBenito 19ff64
userdom_dontaudit_use_unpriv_user_fd(rdisc_t)
Chris PeBenito 19ff64
Chris PeBenito 19ff64
ifdef(`targeted_policy',`
Chris PeBenito 19ff64
	term_dontaudit_use_unallocated_tty(rdisc_t)
Chris PeBenito 19ff64
	term_dontaudit_use_generic_pty(rdisc_t)
Chris PeBenito 19ff64
	files_dontaudit_read_root_file(rdisc_t)
Chris PeBenito 19ff64
')
Chris PeBenito 19ff64
Chris PeBenito 19ff64
optional_policy(`selinuxutil',`
Chris PeBenito 19ff64
	seutil_sigchld_newrole(rdisc_t)
Chris PeBenito 19ff64
')
Chris PeBenito 19ff64
Chris PeBenito 19ff64
optional_policy(`udev',`
Chris PeBenito 19ff64
	udev_read_db(rdisc_t)
Chris PeBenito 19ff64
')