2005-10-10 18:11:46 +00:00
|
|
|
|
2008-07-02 14:07:57 +00:00
|
|
|
policy_module(arpwatch, 1.6.0)
|
2005-10-10 18:11:46 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
|
|
|
|
type arpwatch_t;
|
|
|
|
type arpwatch_exec_t;
|
2008-07-23 21:38:39 +00:00
|
|
|
init_daemon_domain(arpwatch_t, arpwatch_exec_t)
|
2005-10-10 18:11:46 +00:00
|
|
|
|
|
|
|
type arpwatch_data_t;
|
|
|
|
files_type(arpwatch_data_t)
|
|
|
|
|
|
|
|
type arpwatch_tmp_t;
|
|
|
|
files_tmp_file(arpwatch_tmp_t)
|
|
|
|
|
|
|
|
type arpwatch_var_run_t;
|
|
|
|
files_pid_file(arpwatch_var_run_t)
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Local policy
|
|
|
|
#
|
|
|
|
allow arpwatch_t self:capability { net_admin net_raw setgid setuid };
|
|
|
|
dontaudit arpwatch_t self:capability sys_tty_config;
|
|
|
|
allow arpwatch_t self:process signal_perms;
|
|
|
|
allow arpwatch_t self:unix_dgram_socket create_socket_perms;
|
|
|
|
allow arpwatch_t self:unix_stream_socket create_stream_socket_perms;
|
|
|
|
allow arpwatch_t self:tcp_socket { connect create_stream_socket_perms };
|
|
|
|
allow arpwatch_t self:udp_socket create_socket_perms;
|
|
|
|
allow arpwatch_t self:packet_socket create_socket_perms;
|
|
|
|
|
2008-07-23 21:38:39 +00:00
|
|
|
manage_dirs_pattern(arpwatch_t, arpwatch_data_t, arpwatch_data_t)
|
|
|
|
manage_files_pattern(arpwatch_t, arpwatch_data_t, arpwatch_data_t)
|
|
|
|
manage_lnk_files_pattern(arpwatch_t, arpwatch_data_t, arpwatch_data_t)
|
2005-10-10 18:11:46 +00:00
|
|
|
|
2008-07-23 21:38:39 +00:00
|
|
|
manage_dirs_pattern(arpwatch_t, arpwatch_tmp_t, arpwatch_tmp_t)
|
|
|
|
manage_files_pattern(arpwatch_t, arpwatch_tmp_t, arpwatch_tmp_t)
|
2006-02-21 18:40:44 +00:00
|
|
|
files_tmp_filetrans(arpwatch_t, arpwatch_tmp_t, { file dir })
|
2005-10-10 18:11:46 +00:00
|
|
|
|
2008-07-23 21:38:39 +00:00
|
|
|
manage_files_pattern(arpwatch_t, arpwatch_var_run_t, arpwatch_var_run_t)
|
|
|
|
files_pid_filetrans(arpwatch_t, arpwatch_var_run_t, file)
|
2005-10-10 18:11:46 +00:00
|
|
|
|
2006-01-31 16:49:43 +00:00
|
|
|
kernel_read_kernel_sysctls(arpwatch_t)
|
2005-10-10 18:11:46 +00:00
|
|
|
kernel_list_proc(arpwatch_t)
|
|
|
|
kernel_read_proc_symlinks(arpwatch_t)
|
|
|
|
|
2007-06-27 15:23:21 +00:00
|
|
|
corenet_all_recvfrom_unlabeled(arpwatch_t)
|
|
|
|
corenet_all_recvfrom_netlabel(arpwatch_t)
|
2005-10-10 18:11:46 +00:00
|
|
|
corenet_tcp_sendrecv_all_if(arpwatch_t)
|
|
|
|
corenet_udp_sendrecv_all_if(arpwatch_t)
|
|
|
|
corenet_raw_sendrecv_all_if(arpwatch_t)
|
|
|
|
corenet_tcp_sendrecv_all_nodes(arpwatch_t)
|
|
|
|
corenet_udp_sendrecv_all_nodes(arpwatch_t)
|
|
|
|
corenet_raw_sendrecv_all_nodes(arpwatch_t)
|
|
|
|
corenet_tcp_sendrecv_all_ports(arpwatch_t)
|
|
|
|
corenet_udp_sendrecv_all_ports(arpwatch_t)
|
|
|
|
|
|
|
|
dev_read_sysfs(arpwatch_t)
|
|
|
|
|
|
|
|
fs_getattr_all_fs(arpwatch_t)
|
|
|
|
fs_search_auto_mountpoints(arpwatch_t)
|
|
|
|
|
2007-03-23 23:24:59 +00:00
|
|
|
corecmd_read_bin_symlinks(arpwatch_t)
|
2005-10-10 18:11:46 +00:00
|
|
|
|
2006-02-20 21:33:25 +00:00
|
|
|
domain_use_interactive_fds(arpwatch_t)
|
2005-10-10 18:11:46 +00:00
|
|
|
|
|
|
|
files_read_etc_files(arpwatch_t)
|
|
|
|
files_read_usr_files(arpwatch_t)
|
|
|
|
files_search_var_lib(arpwatch_t)
|
|
|
|
|
2007-06-12 13:06:13 +00:00
|
|
|
auth_use_nsswitch(arpwatch_t)
|
|
|
|
|
2005-10-10 18:11:46 +00:00
|
|
|
logging_send_syslog_msg(arpwatch_t)
|
|
|
|
|
|
|
|
miscfiles_read_localization(arpwatch_t)
|
|
|
|
|
2006-02-20 21:33:25 +00:00
|
|
|
userdom_dontaudit_use_unpriv_user_fds(arpwatch_t)
|
2005-10-10 18:11:46 +00:00
|
|
|
|
|
|
|
mta_send_mail(arpwatch_t)
|
|
|
|
|
2008-04-29 13:58:34 +00:00
|
|
|
sysadm_dontaudit_search_home_dirs(arpwatch_t)
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-10-10 18:11:46 +00:00
|
|
|
seutil_sigchld_newrole(arpwatch_t)
|
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-10-10 18:11:46 +00:00
|
|
|
udev_read_db(arpwatch_t)
|
|
|
|
')
|