2009-08-05 14:59:21 +00:00
|
|
|
policy_module(rwho, 1.6.0)
|
2007-04-30 17:39:01 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
|
|
|
|
type rwho_t;
|
|
|
|
type rwho_exec_t;
|
|
|
|
init_daemon_domain(rwho_t, rwho_exec_t)
|
|
|
|
|
2008-10-08 15:50:03 +00:00
|
|
|
type rwho_initrc_exec_t;
|
|
|
|
init_script_file(rwho_initrc_exec_t)
|
|
|
|
|
2007-09-06 18:34:40 +00:00
|
|
|
type rwho_log_t;
|
|
|
|
files_type(rwho_log_t)
|
|
|
|
|
2007-04-30 17:39:01 +00:00
|
|
|
type rwho_spool_t;
|
|
|
|
files_type(rwho_spool_t)
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# rwho local policy
|
|
|
|
#
|
|
|
|
|
|
|
|
allow rwho_t self:capability sys_chroot;
|
|
|
|
allow rwho_t self:unix_dgram_socket create;
|
|
|
|
allow rwho_t self:fifo_file rw_file_perms;
|
|
|
|
allow rwho_t self:unix_stream_socket create_stream_socket_perms;
|
|
|
|
allow rwho_t self:udp_socket create_socket_perms;
|
|
|
|
|
2007-09-06 18:34:40 +00:00
|
|
|
allow rwho_t rwho_log_t:dir manage_dir_perms;
|
|
|
|
allow rwho_t rwho_log_t:file manage_file_perms;
|
|
|
|
logging_log_filetrans(rwho_t, rwho_log_t, { file dir })
|
|
|
|
|
2007-04-30 17:39:01 +00:00
|
|
|
allow rwho_t rwho_spool_t:dir manage_dir_perms;
|
|
|
|
allow rwho_t rwho_spool_t:file manage_file_perms;
|
2008-07-23 21:38:39 +00:00
|
|
|
files_spool_filetrans(rwho_t, rwho_spool_t, { file dir })
|
2007-04-30 17:39:01 +00:00
|
|
|
|
|
|
|
kernel_read_system_state(rwho_t)
|
|
|
|
|
2007-06-27 15:23:21 +00:00
|
|
|
corenet_all_recvfrom_unlabeled(rwho_t)
|
|
|
|
corenet_all_recvfrom_netlabel(rwho_t)
|
2009-01-06 20:24:10 +00:00
|
|
|
corenet_udp_sendrecv_generic_if(rwho_t)
|
2009-01-09 19:48:02 +00:00
|
|
|
corenet_udp_sendrecv_generic_node(rwho_t)
|
2007-04-30 17:39:01 +00:00
|
|
|
corenet_udp_sendrecv_all_ports(rwho_t)
|
2009-01-09 19:48:02 +00:00
|
|
|
corenet_udp_bind_generic_node(rwho_t)
|
2007-04-30 17:39:01 +00:00
|
|
|
corenet_udp_bind_rwho_port(rwho_t)
|
|
|
|
corenet_sendrecv_rwho_server_packets(rwho_t)
|
|
|
|
|
|
|
|
domain_use_interactive_fds(rwho_t)
|
|
|
|
|
|
|
|
files_read_etc_files(rwho_t)
|
|
|
|
|
|
|
|
init_read_utmp(rwho_t)
|
|
|
|
init_dontaudit_write_utmp(rwho_t)
|
|
|
|
|
|
|
|
miscfiles_read_localization(rwho_t)
|
|
|
|
|
|
|
|
sysnet_dns_name_resolve(rwho_t)
|