-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlugfix.te
62 lines (51 loc) · 1.43 KB
/
lugfix.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
policy_module(lugfix, 1.0.12)
require {
type var_log_t;
type var_lib_t;
type var_t;
type systemd_tmpfiles_t;
class dir setattr;
}
#============= systemd_tmpfiles_t ==============
systemd_tmpfiles_manage_object(var_lib_t, dir)
systemd_tmpfiles_manage_object(var_log_t, dir)
systemd_tmpfiles_manage_object(var_t, dir)
require {
type dhcpc_t;
type avahi_exec_t;
class file execute;
}
#============= dhcpc_t ==============
avahi_domtrans(dhcpc_t)
require {
type collectd_t;
type init_var_run_t;
class capability { net_admin dac_override };
}
#============= collectd_t =============
corenet_tcp_connect_http_port(collectd_t)
domain_read_all_domains_state(collectd_t)
init_read_utmp(collectd_t)
read_files_pattern(collectd_t, init_var_run_t, init_var_run_t)
allow collectd_t self:capability { net_admin dac_override };
require {
type git_system_t;
type gitd_exec_t;
type git_sys_content_t;
class tcp_socket { accept listen };
class file execute_no_trans;
}
#============= git_system_t ==============
miscfiles_read_public_files(git_system_t)
read_lnk_files_pattern(git_system_t, git_sys_content_t, git_sys_content_t)
kernel_read_vm_sysctls(git_system_t)
dev_read_sysfs(git_system_t)
files_search_mnt(git_system_t)
allow git_system_t self:tcp_socket { accept listen };
can_exec(git_system_t, gitd_exec_t)
#============= iptables_t ==============
require {
type iptables_t;
}
domain_type(iptables_t)
fail2ban_rw_inherited_tmp_files(iptables_t)