2010-05-24 19:32:01 +00:00
|
|
|
policy_module(howl, 1.9.0)
|
2005-08-22 20:43:20 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
|
|
|
|
type howl_t;
|
|
|
|
type howl_exec_t;
|
2008-07-23 21:38:39 +00:00
|
|
|
init_daemon_domain(howl_t, howl_exec_t)
|
2005-08-22 20:43:20 +00:00
|
|
|
|
|
|
|
type howl_var_run_t;
|
|
|
|
files_pid_file(howl_var_run_t)
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Local policy
|
|
|
|
#
|
|
|
|
|
|
|
|
allow howl_t self:capability { kill net_admin };
|
|
|
|
dontaudit howl_t self:capability sys_tty_config;
|
2005-09-22 15:32:53 +00:00
|
|
|
allow howl_t self:process signal_perms;
|
2006-12-12 20:08:08 +00:00
|
|
|
allow howl_t self:fifo_file rw_fifo_file_perms;
|
2005-08-22 20:43:20 +00:00
|
|
|
allow howl_t self:tcp_socket create_stream_socket_perms;
|
2005-09-22 15:32:53 +00:00
|
|
|
allow howl_t self:udp_socket create_socket_perms;
|
2005-08-22 20:43:20 +00:00
|
|
|
|
2008-07-23 21:38:39 +00:00
|
|
|
manage_files_pattern(howl_t, howl_var_run_t, howl_var_run_t)
|
|
|
|
files_pid_filetrans(howl_t, howl_var_run_t, file)
|
2005-08-22 20:43:20 +00:00
|
|
|
|
|
|
|
kernel_read_network_state(howl_t)
|
2006-01-31 16:49:43 +00:00
|
|
|
kernel_read_kernel_sysctls(howl_t)
|
2010-03-12 14:42:55 +00:00
|
|
|
kernel_request_load_module(howl_t)
|
2005-08-22 20:43:20 +00:00
|
|
|
kernel_list_proc(howl_t)
|
|
|
|
kernel_read_proc_symlinks(howl_t)
|
|
|
|
|
2007-06-27 15:23:21 +00:00
|
|
|
corenet_all_recvfrom_unlabeled(howl_t)
|
|
|
|
corenet_all_recvfrom_netlabel(howl_t)
|
2009-01-06 20:24:10 +00:00
|
|
|
corenet_tcp_sendrecv_generic_if(howl_t)
|
|
|
|
corenet_udp_sendrecv_generic_if(howl_t)
|
2009-01-09 19:48:02 +00:00
|
|
|
corenet_tcp_sendrecv_generic_node(howl_t)
|
|
|
|
corenet_udp_sendrecv_generic_node(howl_t)
|
2005-08-22 20:43:20 +00:00
|
|
|
corenet_tcp_sendrecv_all_ports(howl_t)
|
2005-09-22 15:32:53 +00:00
|
|
|
corenet_udp_sendrecv_all_ports(howl_t)
|
2009-01-09 19:48:02 +00:00
|
|
|
corenet_tcp_bind_generic_node(howl_t)
|
|
|
|
corenet_udp_bind_generic_node(howl_t)
|
2005-08-22 20:43:20 +00:00
|
|
|
corenet_tcp_bind_howl_port(howl_t)
|
|
|
|
corenet_udp_bind_howl_port(howl_t)
|
2006-05-30 19:46:34 +00:00
|
|
|
corenet_sendrecv_howl_server_packets(howl_t)
|
2005-08-22 20:43:20 +00:00
|
|
|
|
|
|
|
dev_read_sysfs(howl_t)
|
|
|
|
|
|
|
|
fs_getattr_all_fs(howl_t)
|
|
|
|
fs_search_auto_mountpoints(howl_t)
|
|
|
|
|
2006-02-20 21:33:25 +00:00
|
|
|
domain_use_interactive_fds(howl_t)
|
2005-08-22 20:43:20 +00:00
|
|
|
|
|
|
|
files_read_etc_files(howl_t)
|
|
|
|
|
2006-01-18 18:08:39 +00:00
|
|
|
init_rw_utmp(howl_t)
|
2005-08-22 20:43:20 +00:00
|
|
|
|
|
|
|
logging_send_syslog_msg(howl_t)
|
|
|
|
|
|
|
|
miscfiles_read_localization(howl_t)
|
|
|
|
|
|
|
|
sysnet_read_config(howl_t)
|
|
|
|
|
2006-02-20 21:33:25 +00:00
|
|
|
userdom_dontaudit_use_unpriv_user_fds(howl_t)
|
2008-11-05 16:10:46 +00:00
|
|
|
userdom_dontaudit_search_user_home_dirs(howl_t)
|
2005-08-22 20:43:20 +00:00
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-08-22 20:43:20 +00:00
|
|
|
nis_use_ypbind(howl_t)
|
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-08-22 20:43:20 +00:00
|
|
|
seutil_sigchld_newrole(howl_t)
|
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-08-22 20:43:20 +00:00
|
|
|
udev_read_db(howl_t)
|
|
|
|
')
|