forked from fedora-selinux/selinux-policy-contrib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
arpwatch.te
104 lines (78 loc) · 2.9 KB
/
arpwatch.te
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
policy_module(arpwatch, 1.11.0)
########################################
#
# Declarations
#
type arpwatch_t;
type arpwatch_exec_t;
init_daemon_domain(arpwatch_t, arpwatch_exec_t)
type arpwatch_initrc_exec_t;
init_script_file(arpwatch_initrc_exec_t)
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)
type arpwatch_unit_file_t;
systemd_unit_file(arpwatch_unit_file_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_stream_socket { accept listen };
allow arpwatch_t self:tcp_socket { accept listen };
allow arpwatch_t self:packet_socket { create_socket_perms map };
allow arpwatch_t self:socket create_socket_perms;
allow arpwatch_t self:netlink_rdma_socket create_socket_perms;
allow arpwatch_t self:netlink_socket create_socket_perms;
allow arpwatch_t self:netlink_netfilter_socket create_socket_perms;
tunable_policy(`deny_bluetooth',`',`
allow arpwatch_t self:bluetooth_socket create_socket_perms;
')
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)
manage_dirs_pattern(arpwatch_t, arpwatch_tmp_t, arpwatch_tmp_t)
manage_files_pattern(arpwatch_t, arpwatch_tmp_t, arpwatch_tmp_t)
files_tmp_filetrans(arpwatch_t, arpwatch_tmp_t, { file dir })
manage_files_pattern(arpwatch_t, arpwatch_var_run_t, arpwatch_var_run_t)
files_pid_filetrans(arpwatch_t, arpwatch_var_run_t, file)
kernel_read_network_state(arpwatch_t)
# meminfo
kernel_read_system_state(arpwatch_t)
kernel_read_kernel_sysctls(arpwatch_t)
kernel_read_proc_symlinks(arpwatch_t)
kernel_request_load_module(arpwatch_t)
corecmd_exec_shell(arpwatch_t)
corenet_all_recvfrom_netlabel(arpwatch_t)
corenet_tcp_sendrecv_generic_if(arpwatch_t)
corenet_udp_sendrecv_generic_if(arpwatch_t)
corenet_raw_sendrecv_generic_if(arpwatch_t)
corenet_tcp_sendrecv_generic_node(arpwatch_t)
corenet_udp_sendrecv_generic_node(arpwatch_t)
corenet_raw_sendrecv_generic_node(arpwatch_t)
corenet_tcp_sendrecv_all_ports(arpwatch_t)
corenet_udp_sendrecv_all_ports(arpwatch_t)
dev_read_sysfs(arpwatch_t)
dev_read_usbmon_dev(arpwatch_t)
dev_map_usbmon_dev(arpwatch_t)
dev_rw_generic_usb_dev(arpwatch_t)
fs_getattr_all_fs(arpwatch_t)
fs_search_auto_mountpoints(arpwatch_t)
domain_use_interactive_fds(arpwatch_t)
files_search_var_lib(arpwatch_t)
auth_use_nsswitch(arpwatch_t)
logging_send_syslog_msg(arpwatch_t)
userdom_dontaudit_search_user_home_dirs(arpwatch_t)
userdom_dontaudit_use_unpriv_user_fds(arpwatch_t)
mta_send_mail(arpwatch_t)
optional_policy(`
seutil_sigchld_newrole(arpwatch_t)
')
optional_policy(`
udev_read_db(arpwatch_t)
')