aboutsummaryrefslogtreecommitdiff
path: root/selinux/ptunnel-ng.te
blob: 79412d2e2f0307f6c13c2b7ebad8f373c70c13d9 (plain)
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
module ptunnel-ng 1.0;

require {
	type local_login_t;
	type file_context_t;
	type unconfined_t;
	type lvm_t;
	type bin_t;
	type gpmctl_t;
	type tracefs_t;
	type dpkg_script_t;
	type xconsole_device_t;
	type modules_object_t;
	type initrc_var_run_t;
	type var_run_t;
	type debugfs_t;
	type udev_var_run_t;
	type bootloader_t;
	type tmp_t;
	type fsadm_run_t;
	class file { create execmod execute execute_no_trans getattr link open read rename setattr unlink write };
	class capability sys_module;
	class dir { add_name getattr remove_name search write };
	class fifo_file getattr;
	class sock_file getattr;
	class system module_load;
}

#============= bootloader_t ==============
allow bootloader_t debugfs_t:dir search;
allow bootloader_t file_context_t:dir search;
allow bootloader_t file_context_t:file { getattr open read };
allow bootloader_t fsadm_run_t:dir { add_name getattr remove_name write };
allow bootloader_t fsadm_run_t:file { create getattr link open read rename setattr unlink write };
allow bootloader_t gpmctl_t:sock_file getattr;
allow bootloader_t modules_object_t:system module_load;
allow bootloader_t self:capability sys_module;
allow bootloader_t tmp_t:file { execute execute_no_trans getattr open read };
allow bootloader_t tracefs_t:dir search;
allow bootloader_t udev_var_run_t:file { getattr open read };
allow bootloader_t xconsole_device_t:fifo_file getattr;

#============= dpkg_script_t ==============

#!!!! This avc can be allowed using the boolean 'allow_execmod'
allow dpkg_script_t bin_t:file execmod;

#============= local_login_t ==============
allow local_login_t initrc_var_run_t:file unlink;
allow local_login_t var_run_t:dir { add_name remove_name write };
allow local_login_t var_run_t:file { getattr open read rename unlink };

#============= lvm_t ==============
allow lvm_t initrc_var_run_t:dir { add_name getattr write };

#============= unconfined_t ==============

#!!!! This avc can be allowed using the boolean 'allow_execmod'
allow unconfined_t bin_t:file execmod;