File tree Expand file tree Collapse file tree 4 files changed +42
-0
lines changed Expand file tree Collapse file tree 4 files changed +42
-0
lines changed Original file line number Diff line number Diff line change
1
+
2
+ module openakc 1 .0 ;
3
+
4
+ require {
5
+ type sysctl_t;
6
+ type systemd_hwdb_etc_t;
7
+ type udev_var_run_t;
8
+ type hi_reserved_port_t;
9
+ type var_lib_t;
10
+ type ifconfig_exec_t;
11
+ type sshd_t;
12
+ type hostname_exec_t;
13
+ type proc_kcore_t;
14
+ type sysctl_dev_t;
15
+ type hwdata_t;
16
+ class file { execute execute_no_trans getattr map open read };
17
+ class dir { create read search setattr };
18
+ class tcp_socket name_connect;
19
+ }
20
+
21
+ # ============= sshd_t ==============
22
+
23
+ # !!!! This avc can be allowed using the boolean 'nis_enabled'
24
+ allow sshd_t hi_reserved_port_t:tcp_socket name_connect;
25
+
26
+ # !!!! This avc can be allowed using the boolean 'domain_can_mmap_files'
27
+ allow sshd_t hostname_exec_t:file map;
28
+ allow sshd_t hostname_exec_t:file { execute execute_no_trans open read };
29
+ allow sshd_t hwdata_t:file { open read };
30
+ allow sshd_t ifconfig_exec_t:file { execute open read };
31
+ allow sshd_t proc_kcore_t:file getattr;
32
+ allow sshd_t sysctl_dev_t:dir search;
33
+ allow sshd_t sysctl_t:dir read;
34
+ allow sshd_t sysctl_t:file getattr;
35
+
36
+ # !!!! This avc can be allowed using the boolean 'domain_can_mmap_files'
37
+ allow sshd_t systemd_hwdb_etc_t:file map;
38
+ allow sshd_t udev_var_run_t:file { open read };
39
+
40
+ # !!!! This avc can be allowed using the boolean 'polyinstantiation_enabled'
41
+ allow sshd_t var_lib_t:dir { create setattr };
42
+ allow sshd_t var_lib_t:file { getattr open read };
You can’t perform that action at this time.
0 commit comments