49 lines
920 B
Plaintext
49 lines
920 B
Plaintext
|
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)
|
||
|
')
|