|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
e9c6cd |
policy_module(arpwatch,1.5.1)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Declarations
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type arpwatch_t;
|
|
Chris PeBenito |
17de1b |
type arpwatch_exec_t;
|
|
Chris PeBenito |
17de1b |
init_daemon_domain(arpwatch_t,arpwatch_exec_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type arpwatch_data_t;
|
|
Chris PeBenito |
17de1b |
files_type(arpwatch_data_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type arpwatch_tmp_t;
|
|
Chris PeBenito |
17de1b |
files_tmp_file(arpwatch_tmp_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type arpwatch_var_run_t;
|
|
Chris PeBenito |
17de1b |
files_pid_file(arpwatch_var_run_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Local policy
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
allow arpwatch_t self:capability { net_admin net_raw setgid setuid };
|
|
Chris PeBenito |
17de1b |
dontaudit arpwatch_t self:capability sys_tty_config;
|
|
Chris PeBenito |
17de1b |
allow arpwatch_t self:process signal_perms;
|
|
Chris PeBenito |
17de1b |
allow arpwatch_t self:unix_dgram_socket create_socket_perms;
|
|
Chris PeBenito |
17de1b |
allow arpwatch_t self:unix_stream_socket create_stream_socket_perms;
|
|
Chris PeBenito |
17de1b |
allow arpwatch_t self:tcp_socket { connect create_stream_socket_perms };
|
|
Chris PeBenito |
17de1b |
allow arpwatch_t self:udp_socket create_socket_perms;
|
|
Chris PeBenito |
17de1b |
allow arpwatch_t self:packet_socket create_socket_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
c0868a |
manage_dirs_pattern(arpwatch_t,arpwatch_data_t,arpwatch_data_t)
|
|
Chris PeBenito |
c0868a |
manage_files_pattern(arpwatch_t,arpwatch_data_t,arpwatch_data_t)
|
|
Chris PeBenito |
c0868a |
manage_lnk_files_pattern(arpwatch_t,arpwatch_data_t,arpwatch_data_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
c0868a |
manage_dirs_pattern(arpwatch_t,arpwatch_tmp_t,arpwatch_tmp_t)
|
|
Chris PeBenito |
c0868a |
manage_files_pattern(arpwatch_t,arpwatch_tmp_t,arpwatch_tmp_t)
|
|
Chris PeBenito |
17de1b |
files_tmp_filetrans(arpwatch_t, arpwatch_tmp_t, { file dir })
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
c0868a |
manage_files_pattern(arpwatch_t,arpwatch_var_run_t,arpwatch_var_run_t)
|
|
Chris PeBenito |
17de1b |
files_pid_filetrans(arpwatch_t,arpwatch_var_run_t,file)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
kernel_read_kernel_sysctls(arpwatch_t)
|
|
Chris PeBenito |
17de1b |
kernel_list_proc(arpwatch_t)
|
|
Chris PeBenito |
17de1b |
kernel_read_proc_symlinks(arpwatch_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_unlabeled(arpwatch_t)
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_netlabel(arpwatch_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_sendrecv_all_if(arpwatch_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_all_if(arpwatch_t)
|
|
Chris PeBenito |
17de1b |
corenet_raw_sendrecv_all_if(arpwatch_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_sendrecv_all_nodes(arpwatch_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_all_nodes(arpwatch_t)
|
|
Chris PeBenito |
17de1b |
corenet_raw_sendrecv_all_nodes(arpwatch_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_sendrecv_all_ports(arpwatch_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_all_ports(arpwatch_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
dev_read_sysfs(arpwatch_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
fs_getattr_all_fs(arpwatch_t)
|
|
Chris PeBenito |
17de1b |
fs_search_auto_mountpoints(arpwatch_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
8021cb |
corecmd_read_bin_symlinks(arpwatch_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
domain_use_interactive_fds(arpwatch_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
files_read_etc_files(arpwatch_t)
|
|
Chris PeBenito |
17de1b |
files_read_usr_files(arpwatch_t)
|
|
Chris PeBenito |
17de1b |
files_search_var_lib(arpwatch_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
f7101c |
auth_use_nsswitch(arpwatch_t)
|
|
Chris PeBenito |
f7101c |
|
|
Chris PeBenito |
17de1b |
libs_use_ld_so(arpwatch_t)
|
|
Chris PeBenito |
17de1b |
libs_use_shared_libs(arpwatch_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
logging_send_syslog_msg(arpwatch_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
miscfiles_read_localization(arpwatch_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
userdom_dontaudit_use_unpriv_user_fds(arpwatch_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
mta_send_mail(arpwatch_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
e9c6cd |
sysadm_dontaudit_search_home_dirs(arpwatch_t)
|
|
Chris PeBenito |
e9c6cd |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
seutil_sigchld_newrole(arpwatch_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
udev_read_db(arpwatch_t)
|
|
Chris PeBenito |
17de1b |
')
|