forked from OwlCyberDefense/refpolicy-contrib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlivecd.te
48 lines (36 loc) · 920 Bytes
/
livecd.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
policy_module(livecd, 1.3.0)
########################################
#
# Declarations
#
attribute_role livecd_roles;
roleattribute system_r livecd_roles;
type livecd_t;
type livecd_exec_t;
application_domain(livecd_t, livecd_exec_t)
role livecd_roles types livecd_t;
type livecd_tmp_t;
files_tmp_file(livecd_tmp_t)
########################################
#
# Local policy
#
dontaudit livecd_t self:capability2 mac_admin;
domain_ptrace_all_domains(livecd_t)
manage_dirs_pattern(livecd_t, livecd_tmp_t, livecd_tmp_t)
manage_files_pattern(livecd_t, livecd_tmp_t, livecd_tmp_t)
files_tmp_filetrans(livecd_t, livecd_tmp_t, { dir file })
sysnet_manage_config(livecd_t)
sysnet_etc_filetrans_config(livecd_t)
optional_policy(`
hal_dbus_chat(livecd_t)
')
optional_policy(`
mount_run(livecd_t, livecd_roles)
')
optional_policy(`
rpm_domtrans(livecd_t)
')
optional_policy(`
unconfined_domain_noaudit(livecd_t)
')