Chris PeBenito 6a2975
Chris PeBenito 190066
policy_module(rwho,1.0.2)
Chris PeBenito 6a2975
Chris PeBenito 6a2975
########################################
Chris PeBenito 6a2975
#
Chris PeBenito 6a2975
# Declarations
Chris PeBenito 6a2975
#
Chris PeBenito 6a2975
Chris PeBenito 6a2975
type rwho_t;
Chris PeBenito 6a2975
type rwho_exec_t;
Chris PeBenito 6a2975
init_daemon_domain(rwho_t, rwho_exec_t)
Chris PeBenito 6a2975
Chris PeBenito 6a2975
# var/spool files
Chris PeBenito 6a2975
type rwho_spool_t;
Chris PeBenito 6a2975
files_type(rwho_spool_t)
Chris PeBenito 6a2975
Chris PeBenito 6a2975
########################################
Chris PeBenito 6a2975
#
Chris PeBenito 6a2975
# rwho local policy
Chris PeBenito 6a2975
#
Chris PeBenito 6a2975
Chris PeBenito 6a2975
allow rwho_t self:capability sys_chroot;
Chris PeBenito 6a2975
allow rwho_t self:unix_dgram_socket create;
Chris PeBenito 6a2975
allow rwho_t self:fifo_file rw_file_perms;
Chris PeBenito 6a2975
allow rwho_t self:unix_stream_socket create_stream_socket_perms;
Chris PeBenito 6a2975
allow rwho_t self:udp_socket create_socket_perms;
Chris PeBenito 6a2975
Chris PeBenito 6a2975
# var/spool files for rwho
Chris PeBenito 6a2975
allow rwho_t rwho_spool_t:dir manage_dir_perms;
Chris PeBenito 6a2975
allow rwho_t rwho_spool_t:file manage_file_perms;
Chris PeBenito 6a2975
files_spool_filetrans(rwho_t,rwho_spool_t, { file dir })
Chris PeBenito 6a2975
Chris PeBenito 6a2975
kernel_read_system_state(rwho_t)
Chris PeBenito 6a2975
Chris PeBenito 190066
corenet_all_recvfrom_unlabeled(rwho_t)
Chris PeBenito 190066
corenet_all_recvfrom_netlabel(rwho_t)
Chris PeBenito 6a2975
corenet_udp_sendrecv_all_if(rwho_t)
Chris PeBenito 6a2975
corenet_udp_sendrecv_all_nodes(rwho_t)
Chris PeBenito 6a2975
corenet_udp_sendrecv_all_ports(rwho_t)
Chris PeBenito 6a2975
corenet_udp_bind_all_nodes(rwho_t)
Chris PeBenito 6a2975
corenet_udp_bind_rwho_port(rwho_t)
Chris PeBenito 6a2975
corenet_sendrecv_rwho_server_packets(rwho_t)
Chris PeBenito 6a2975
Chris PeBenito 6a2975
domain_use_interactive_fds(rwho_t)
Chris PeBenito 6a2975
Chris PeBenito 6a2975
files_read_etc_files(rwho_t)
Chris PeBenito 6a2975
Chris PeBenito 6a2975
init_read_utmp(rwho_t)
Chris PeBenito 6a2975
init_dontaudit_write_utmp(rwho_t)
Chris PeBenito 6a2975
Chris PeBenito 6a2975
libs_use_ld_so(rwho_t)
Chris PeBenito 6a2975
libs_use_shared_libs(rwho_t)
Chris PeBenito 6a2975
Chris PeBenito 6a2975
miscfiles_read_localization(rwho_t)
Chris PeBenito 6a2975
Chris PeBenito 6a2975
sysnet_dns_name_resolve(rwho_t)
Chris PeBenito 6a2975
Chris PeBenito 6a2975
ifdef(`targeted_policy',`
Chris PeBenito 6a2975
	term_dontaudit_use_unallocated_ttys(rwho_t)
Chris PeBenito 6a2975
	term_dontaudit_use_generic_ptys(rwho_t)
Chris PeBenito 6a2975
')