Chris PeBenito 6a29757
Chris PeBenito 3480f3f
policy_module(rwho,1.2.0)
Chris PeBenito 6a29757
Chris PeBenito 6a29757
########################################
Chris PeBenito 6a29757
#
Chris PeBenito 6a29757
# Declarations
Chris PeBenito 6a29757
#
Chris PeBenito 6a29757
Chris PeBenito 6a29757
type rwho_t;
Chris PeBenito 6a29757
type rwho_exec_t;
Chris PeBenito 6a29757
init_daemon_domain(rwho_t, rwho_exec_t)
Chris PeBenito 6a29757
Chris PeBenito 72f82c4
type rwho_log_t;
Chris PeBenito 72f82c4
files_type(rwho_log_t)
Chris PeBenito 72f82c4
Chris PeBenito 6a29757
type rwho_spool_t;
Chris PeBenito 6a29757
files_type(rwho_spool_t)
Chris PeBenito 6a29757
Chris PeBenito 6a29757
########################################
Chris PeBenito 6a29757
#
Chris PeBenito 6a29757
# rwho local policy
Chris PeBenito 6a29757
#
Chris PeBenito 6a29757
Chris PeBenito 6a29757
allow rwho_t self:capability sys_chroot;
Chris PeBenito 6a29757
allow rwho_t self:unix_dgram_socket create;
Chris PeBenito 6a29757
allow rwho_t self:fifo_file rw_file_perms;
Chris PeBenito 6a29757
allow rwho_t self:unix_stream_socket create_stream_socket_perms;
Chris PeBenito 6a29757
allow rwho_t self:udp_socket create_socket_perms;
Chris PeBenito 6a29757
Chris PeBenito 72f82c4
allow rwho_t rwho_log_t:dir manage_dir_perms;
Chris PeBenito 72f82c4
allow rwho_t rwho_log_t:file manage_file_perms;
Chris PeBenito 72f82c4
logging_log_filetrans(rwho_t, rwho_log_t, { file dir })
Chris PeBenito 72f82c4
Chris PeBenito 6a29757
allow rwho_t rwho_spool_t:dir manage_dir_perms;
Chris PeBenito 6a29757
allow rwho_t rwho_spool_t:file manage_file_perms;
Chris PeBenito 6a29757
files_spool_filetrans(rwho_t,rwho_spool_t, { file dir })
Chris PeBenito 6a29757
Chris PeBenito 6a29757
kernel_read_system_state(rwho_t)
Chris PeBenito 6a29757
Chris PeBenito 1900668
corenet_all_recvfrom_unlabeled(rwho_t)
Chris PeBenito 1900668
corenet_all_recvfrom_netlabel(rwho_t)
Chris PeBenito 6a29757
corenet_udp_sendrecv_all_if(rwho_t)
Chris PeBenito 6a29757
corenet_udp_sendrecv_all_nodes(rwho_t)
Chris PeBenito 6a29757
corenet_udp_sendrecv_all_ports(rwho_t)
Chris PeBenito 6a29757
corenet_udp_bind_all_nodes(rwho_t)
Chris PeBenito 6a29757
corenet_udp_bind_rwho_port(rwho_t)
Chris PeBenito 6a29757
corenet_sendrecv_rwho_server_packets(rwho_t)
Chris PeBenito 6a29757
Chris PeBenito 6a29757
domain_use_interactive_fds(rwho_t)
Chris PeBenito 6a29757
Chris PeBenito 6a29757
files_read_etc_files(rwho_t)
Chris PeBenito 6a29757
Chris PeBenito 6a29757
init_read_utmp(rwho_t)
Chris PeBenito 6a29757
init_dontaudit_write_utmp(rwho_t)
Chris PeBenito 6a29757
Chris PeBenito 6a29757
libs_use_ld_so(rwho_t)
Chris PeBenito 6a29757
libs_use_shared_libs(rwho_t)
Chris PeBenito 6a29757
Chris PeBenito 6a29757
miscfiles_read_localization(rwho_t)
Chris PeBenito 6a29757
Chris PeBenito 6a29757
sysnet_dns_name_resolve(rwho_t)