|
Chris PeBenito |
f9b11e |
|
|
Chris PeBenito |
f9b11e |
policy_module(howl,1.0)
|
|
Chris PeBenito |
f9b11e |
|
|
Chris PeBenito |
f9b11e |
########################################
|
|
Chris PeBenito |
f9b11e |
#
|
|
Chris PeBenito |
f9b11e |
# Declarations
|
|
Chris PeBenito |
f9b11e |
#
|
|
Chris PeBenito |
f9b11e |
|
|
Chris PeBenito |
f9b11e |
type howl_t;
|
|
Chris PeBenito |
f9b11e |
type howl_exec_t;
|
|
Chris PeBenito |
f9b11e |
init_daemon_domain(howl_t,howl_exec_t)
|
|
Chris PeBenito |
f9b11e |
|
|
Chris PeBenito |
f9b11e |
type howl_var_run_t;
|
|
Chris PeBenito |
f9b11e |
files_pid_file(howl_var_run_t)
|
|
Chris PeBenito |
f9b11e |
|
|
Chris PeBenito |
f9b11e |
########################################
|
|
Chris PeBenito |
f9b11e |
#
|
|
Chris PeBenito |
f9b11e |
# Local policy
|
|
Chris PeBenito |
f9b11e |
#
|
|
Chris PeBenito |
f9b11e |
|
|
Chris PeBenito |
f9b11e |
allow howl_t self:capability { kill net_admin };
|
|
Chris PeBenito |
f9b11e |
dontaudit howl_t self:capability sys_tty_config;
|
|
Chris PeBenito |
f9b11e |
allow howl_t self:fifo_file rw_file_perms;
|
|
Chris PeBenito |
f9b11e |
allow howl_t self:tcp_socket create_stream_socket_perms;
|
|
Chris PeBenito |
f9b11e |
|
|
Chris PeBenito |
f9b11e |
allow howl_t howl_var_run_t:file create_file_perms;
|
|
Chris PeBenito |
f9b11e |
files_create_pid(howl_t,howl_var_run_t)
|
|
Chris PeBenito |
f9b11e |
|
|
Chris PeBenito |
f9b11e |
kernel_read_network_state(howl_t)
|
|
Chris PeBenito |
f9b11e |
kernel_read_kernel_sysctl(howl_t)
|
|
Chris PeBenito |
f9b11e |
kernel_load_module(howl_t)
|
|
Chris PeBenito |
f9b11e |
kernel_list_proc(howl_t)
|
|
Chris PeBenito |
f9b11e |
kernel_read_proc_symlinks(howl_t)
|
|
Chris PeBenito |
f9b11e |
|
|
Chris PeBenito |
f9b11e |
corenet_tcp_sendrecv_all_if(howl_t)
|
|
Chris PeBenito |
f9b11e |
corenet_raw_sendrecv_all_if(howl_t)
|
|
Chris PeBenito |
f9b11e |
corenet_tcp_sendrecv_all_nodes(howl_t)
|
|
Chris PeBenito |
f9b11e |
corenet_raw_sendrecv_all_nodes(howl_t)
|
|
Chris PeBenito |
f9b11e |
corenet_tcp_sendrecv_all_ports(howl_t)
|
|
Chris PeBenito |
f9b11e |
corenet_tcp_bind_all_nodes(howl_t)
|
|
Chris PeBenito |
f9b11e |
corenet_tcp_bind_howl_port(howl_t)
|
|
Chris PeBenito |
f9b11e |
# cjp: why udp bind if it has no other UDP perms?
|
|
Chris PeBenito |
f9b11e |
corenet_udp_bind_howl_port(howl_t)
|
|
Chris PeBenito |
f9b11e |
|
|
Chris PeBenito |
f9b11e |
dev_read_sysfs(howl_t)
|
|
Chris PeBenito |
f9b11e |
|
|
Chris PeBenito |
f9b11e |
fs_getattr_all_fs(howl_t)
|
|
Chris PeBenito |
f9b11e |
fs_search_auto_mountpoints(howl_t)
|
|
Chris PeBenito |
f9b11e |
|
|
Chris PeBenito |
f9b11e |
term_dontaudit_use_console(howl_t)
|
|
Chris PeBenito |
f9b11e |
|
|
Chris PeBenito |
f9b11e |
domain_use_wide_inherit_fd(howl_t)
|
|
Chris PeBenito |
f9b11e |
|
|
Chris PeBenito |
f9b11e |
files_read_etc_files(howl_t)
|
|
Chris PeBenito |
f9b11e |
|
|
Chris PeBenito |
f9b11e |
init_use_fd(howl_t)
|
|
Chris PeBenito |
f9b11e |
init_use_script_pty(howl_t)
|
|
Chris PeBenito |
f9b11e |
init_rw_script_pid(howl_t)
|
|
Chris PeBenito |
f9b11e |
|
|
Chris PeBenito |
f9b11e |
libs_use_ld_so(howl_t)
|
|
Chris PeBenito |
f9b11e |
libs_use_shared_libs(howl_t)
|
|
Chris PeBenito |
f9b11e |
|
|
Chris PeBenito |
f9b11e |
logging_send_syslog_msg(howl_t)
|
|
Chris PeBenito |
f9b11e |
|
|
Chris PeBenito |
f9b11e |
miscfiles_read_localization(howl_t)
|
|
Chris PeBenito |
f9b11e |
|
|
Chris PeBenito |
f9b11e |
sysnet_read_config(howl_t)
|
|
Chris PeBenito |
f9b11e |
|
|
Chris PeBenito |
f9b11e |
userdom_dontaudit_use_unpriv_user_fd(howl_t)
|
|
Chris PeBenito |
f9b11e |
userdom_dontaudit_search_sysadm_home_dir(howl_t)
|
|
Chris PeBenito |
f9b11e |
|
|
Chris PeBenito |
f9b11e |
ifdef(`targeted_policy', `
|
|
Chris PeBenito |
f9b11e |
term_dontaudit_use_unallocated_tty(howl_t)
|
|
Chris PeBenito |
f9b11e |
term_dontaudit_use_generic_pty(howl_t)
|
|
Chris PeBenito |
f9b11e |
files_dontaudit_read_root_file(howl_t)
|
|
Chris PeBenito |
f9b11e |
')
|
|
Chris PeBenito |
f9b11e |
|
|
Chris PeBenito |
f9b11e |
optional_policy(`nis.te',`
|
|
Chris PeBenito |
f9b11e |
nis_use_ypbind(howl_t)
|
|
Chris PeBenito |
f9b11e |
')
|
|
Chris PeBenito |
f9b11e |
|
|
Chris PeBenito |
f9b11e |
optional_policy(`rhgb.te',`
|
|
Chris PeBenito |
f9b11e |
rhgb_domain(howl_t)
|
|
Chris PeBenito |
f9b11e |
')
|
|
Chris PeBenito |
f9b11e |
|
|
Chris PeBenito |
f9b11e |
optional_policy(`selinuxutil.te',`
|
|
Chris PeBenito |
f9b11e |
seutil_sigchld_newrole(howl_t)
|
|
Chris PeBenito |
f9b11e |
')
|
|
Chris PeBenito |
f9b11e |
|
|
Chris PeBenito |
f9b11e |
optional_policy(`udev.te', `
|
|
Chris PeBenito |
f9b11e |
udev_read_db(howl_t)
|
|
Chris PeBenito |
f9b11e |
')
|