|
Chris PeBenito |
4483ee |
|
|
Chris PeBenito |
5ea24b |
policy_module(arpwatch,1.1.0)
|
|
Chris PeBenito |
4483ee |
|
|
Chris PeBenito |
4483ee |
########################################
|
|
Chris PeBenito |
4483ee |
#
|
|
Chris PeBenito |
4483ee |
# Declarations
|
|
Chris PeBenito |
4483ee |
#
|
|
Chris PeBenito |
4483ee |
|
|
Chris PeBenito |
4483ee |
type arpwatch_t;
|
|
Chris PeBenito |
4483ee |
type arpwatch_exec_t;
|
|
Chris PeBenito |
4483ee |
init_daemon_domain(arpwatch_t,arpwatch_exec_t)
|
|
Chris PeBenito |
4483ee |
|
|
Chris PeBenito |
4483ee |
type arpwatch_data_t;
|
|
Chris PeBenito |
4483ee |
files_type(arpwatch_data_t)
|
|
Chris PeBenito |
4483ee |
|
|
Chris PeBenito |
4483ee |
type arpwatch_tmp_t;
|
|
Chris PeBenito |
4483ee |
files_tmp_file(arpwatch_tmp_t)
|
|
Chris PeBenito |
4483ee |
|
|
Chris PeBenito |
4483ee |
type arpwatch_var_run_t;
|
|
Chris PeBenito |
4483ee |
files_pid_file(arpwatch_var_run_t)
|
|
Chris PeBenito |
4483ee |
|
|
Chris PeBenito |
4483ee |
########################################
|
|
Chris PeBenito |
4483ee |
#
|
|
Chris PeBenito |
4483ee |
# Local policy
|
|
Chris PeBenito |
4483ee |
#
|
|
Chris PeBenito |
4483ee |
allow arpwatch_t self:capability { net_admin net_raw setgid setuid };
|
|
Chris PeBenito |
4483ee |
dontaudit arpwatch_t self:capability sys_tty_config;
|
|
Chris PeBenito |
4483ee |
allow arpwatch_t self:process signal_perms;
|
|
Chris PeBenito |
4483ee |
allow arpwatch_t self:unix_dgram_socket create_socket_perms;
|
|
Chris PeBenito |
4483ee |
allow arpwatch_t self:unix_stream_socket create_stream_socket_perms;
|
|
Chris PeBenito |
4483ee |
allow arpwatch_t self:netlink_route_socket r_netlink_socket_perms;
|
|
Chris PeBenito |
4483ee |
allow arpwatch_t self:tcp_socket { connect create_stream_socket_perms };
|
|
Chris PeBenito |
4483ee |
allow arpwatch_t self:udp_socket create_socket_perms;
|
|
Chris PeBenito |
4483ee |
allow arpwatch_t self:packet_socket create_socket_perms;
|
|
Chris PeBenito |
4483ee |
|
|
Chris PeBenito |
4483ee |
allow arpwatch_t arpwatch_data_t:dir create_dir_perms;
|
|
Chris PeBenito |
4483ee |
allow arpwatch_t arpwatch_data_t:file create_file_perms;
|
|
Chris PeBenito |
4483ee |
allow arpwatch_t arpwatch_data_t:lnk_file create_lnk_perms;
|
|
Chris PeBenito |
4483ee |
|
|
Chris PeBenito |
4483ee |
allow arpwatch_t arpwatch_tmp_t:dir create_dir_perms;
|
|
Chris PeBenito |
4483ee |
allow arpwatch_t arpwatch_tmp_t:file create_file_perms;
|
|
Chris PeBenito |
103fe2 |
files_tmp_filetrans(arpwatch_t, arpwatch_tmp_t, { file dir })
|
|
Chris PeBenito |
4483ee |
|
|
Chris PeBenito |
4483ee |
allow arpwatch_t arpwatch_var_run_t:file create_file_perms;
|
|
Chris PeBenito |
4483ee |
allow arpwatch_t arpwatch_var_run_t:dir rw_dir_perms;
|
|
Chris PeBenito |
103fe2 |
files_pid_filetrans(arpwatch_t,arpwatch_var_run_t)
|
|
Chris PeBenito |
4483ee |
|
|
Chris PeBenito |
445522 |
kernel_read_kernel_sysctls(arpwatch_t)
|
|
Chris PeBenito |
4483ee |
kernel_list_proc(arpwatch_t)
|
|
Chris PeBenito |
4483ee |
kernel_read_proc_symlinks(arpwatch_t)
|
|
Chris PeBenito |
4483ee |
|
|
Chris PeBenito |
4483ee |
corenet_tcp_sendrecv_all_if(arpwatch_t)
|
|
Chris PeBenito |
4483ee |
corenet_udp_sendrecv_all_if(arpwatch_t)
|
|
Chris PeBenito |
4483ee |
corenet_raw_sendrecv_all_if(arpwatch_t)
|
|
Chris PeBenito |
4483ee |
corenet_tcp_sendrecv_all_nodes(arpwatch_t)
|
|
Chris PeBenito |
4483ee |
corenet_udp_sendrecv_all_nodes(arpwatch_t)
|
|
Chris PeBenito |
4483ee |
corenet_raw_sendrecv_all_nodes(arpwatch_t)
|
|
Chris PeBenito |
4483ee |
corenet_tcp_sendrecv_all_ports(arpwatch_t)
|
|
Chris PeBenito |
4483ee |
corenet_udp_sendrecv_all_ports(arpwatch_t)
|
|
Chris PeBenito |
bd7037 |
corenet_non_ipsec_sendrecv(arpwatch_t)
|
|
Chris PeBenito |
4483ee |
corenet_tcp_bind_all_nodes(arpwatch_t)
|
|
Chris PeBenito |
4483ee |
corenet_udp_bind_all_nodes(arpwatch_t)
|
|
Chris PeBenito |
4483ee |
|
|
Chris PeBenito |
4483ee |
dev_read_sysfs(arpwatch_t)
|
|
Chris PeBenito |
4483ee |
|
|
Chris PeBenito |
4483ee |
fs_getattr_all_fs(arpwatch_t)
|
|
Chris PeBenito |
4483ee |
fs_search_auto_mountpoints(arpwatch_t)
|
|
Chris PeBenito |
4483ee |
|
|
Chris PeBenito |
4483ee |
term_dontaudit_use_console(arpwatch_t)
|
|
Chris PeBenito |
4483ee |
|
|
Chris PeBenito |
1815ba |
corecmd_read_sbin_symlinks(arpwatch_t)
|
|
Chris PeBenito |
4483ee |
|
|
Chris PeBenito |
15722e |
domain_use_interactive_fds(arpwatch_t)
|
|
Chris PeBenito |
4483ee |
|
|
Chris PeBenito |
4483ee |
files_read_etc_files(arpwatch_t)
|
|
Chris PeBenito |
4483ee |
files_read_usr_files(arpwatch_t)
|
|
Chris PeBenito |
4483ee |
files_search_var_lib(arpwatch_t)
|
|
Chris PeBenito |
4483ee |
|
|
Chris PeBenito |
4483ee |
init_use_fd(arpwatch_t)
|
|
Chris PeBenito |
1815ba |
init_use_script_ptys(arpwatch_t)
|
|
Chris PeBenito |
4483ee |
|
|
Chris PeBenito |
4483ee |
libs_use_ld_so(arpwatch_t)
|
|
Chris PeBenito |
4483ee |
libs_use_shared_libs(arpwatch_t)
|
|
Chris PeBenito |
4483ee |
|
|
Chris PeBenito |
4483ee |
logging_send_syslog_msg(arpwatch_t)
|
|
Chris PeBenito |
4483ee |
|
|
Chris PeBenito |
4483ee |
miscfiles_read_localization(arpwatch_t)
|
|
Chris PeBenito |
4483ee |
|
|
Chris PeBenito |
4483ee |
sysnet_read_config(arpwatch_t)
|
|
Chris PeBenito |
4483ee |
|
|
Chris PeBenito |
15722e |
userdom_dontaudit_use_unpriv_user_fds(arpwatch_t)
|
|
Chris PeBenito |
103fe2 |
userdom_dontaudit_search_sysadm_home_dirs(arpwatch_t)
|
|
Chris PeBenito |
4483ee |
|
|
Chris PeBenito |
4483ee |
mta_send_mail(arpwatch_t)
|
|
Chris PeBenito |
4483ee |
|
|
Chris PeBenito |
4483ee |
ifdef(`targeted_policy',`
|
|
Chris PeBenito |
1815ba |
term_dontaudit_use_unallocated_ttys(arpwatch_t)
|
|
Chris PeBenito |
1815ba |
term_dontaudit_use_generic_ptys(arpwatch_t)
|
|
Chris PeBenito |
9e04f5 |
files_dontaudit_read_root_files(arpwatch_t)
|
|
Chris PeBenito |
4483ee |
')
|
|
Chris PeBenito |
4483ee |
|
|
Chris PeBenito |
132880 |
optional_policy(`nis',`
|
|
Chris PeBenito |
4483ee |
nis_use_ypbind(arpwatch_t)
|
|
Chris PeBenito |
4483ee |
')
|
|
Chris PeBenito |
4483ee |
|
|
Chris PeBenito |
132880 |
optional_policy(`qmail',`
|
|
Chris PeBenito |
4483ee |
corecmd_search_bin(arpwatch_t)
|
|
Chris PeBenito |
4483ee |
')
|
|
Chris PeBenito |
4483ee |
|
|
Chris PeBenito |
132880 |
optional_policy(`selinuxutil',`
|
|
Chris PeBenito |
4483ee |
seutil_sigchld_newrole(arpwatch_t)
|
|
Chris PeBenito |
4483ee |
')
|
|
Chris PeBenito |
4483ee |
|
|
Chris PeBenito |
132880 |
optional_policy(`udev',`
|
|
Chris PeBenito |
4483ee |
udev_read_db(arpwatch_t)
|
|
Chris PeBenito |
4483ee |
')
|
|
Chris PeBenito |
4483ee |
|