|
Chris PeBenito |
9726b3 |
|
|
Chris PeBenito |
9726b3 |
policy_module(unconfined,1.0)
|
|
Chris PeBenito |
9726b3 |
|
|
Chris PeBenito |
9726b3 |
########################################
|
|
Chris PeBenito |
9726b3 |
#
|
|
Chris PeBenito |
9726b3 |
# Declarations
|
|
Chris PeBenito |
9726b3 |
#
|
|
Chris PeBenito |
9726b3 |
|
|
Chris PeBenito |
77f6e2 |
# real declaration moved to mls until
|
|
Chris PeBenito |
77f6e2 |
# range_transition works in loadable modules
|
|
Chris PeBenito |
77f6e2 |
gen_require(`
|
|
Chris PeBenito |
77f6e2 |
type unconfined_t;
|
|
Chris PeBenito |
77f6e2 |
')
|
|
Chris PeBenito |
9726b3 |
type unconfined_exec_t;
|
|
Chris PeBenito |
9726b3 |
init_system_domain(unconfined_t,unconfined_exec_t)
|
|
Chris PeBenito |
9726b3 |
role system_r types unconfined_t;
|
|
Chris PeBenito |
9726b3 |
|
|
Chris PeBenito |
9726b3 |
########################################
|
|
Chris PeBenito |
9726b3 |
#
|
|
Chris PeBenito |
9726b3 |
# Local policy
|
|
Chris PeBenito |
9726b3 |
#
|
|
Chris PeBenito |
9726b3 |
|
|
Chris PeBenito |
c98340 |
unconfined_domain_template(unconfined_t)
|
|
Chris PeBenito |
a42ca7 |
|
|
Chris PeBenito |
9726b3 |
logging_send_syslog_msg(unconfined_t)
|
|
Chris PeBenito |
9726b3 |
|
|
Chris PeBenito |
c98340 |
ifdef(`targeted_policy',`
|
|
Chris PeBenito |
c98340 |
allow unconfined_t self:system syslog_read;
|
|
Chris PeBenito |
c98340 |
|
|
Chris PeBenito |
c98340 |
# Define some type aliases to help with compatibility with
|
|
Chris PeBenito |
c98340 |
# macros and domains from the "strict" policy.
|
|
Chris PeBenito |
23a444 |
typealias unconfined_t alias { secadm_t sysadm_t };
|
|
Chris PeBenito |
c98340 |
|
|
Chris PeBenito |
a42ca7 |
init_domtrans_script(unconfined_t)
|
|
Chris PeBenito |
a42ca7 |
|
|
Chris PeBenito |
b281bf |
libs_domtrans_ldconfig(unconfined_t)
|
|
Chris PeBenito |
b281bf |
|
|
Chris PeBenito |
b281bf |
logging_domtrans_auditctl(unconfined_t)
|
|
Chris PeBenito |
b281bf |
|
|
Chris PeBenito |
b281bf |
seutil_domtrans_restorecon(unconfined_t)
|
|
Chris PeBenito |
b281bf |
|
|
Chris PeBenito |
c98340 |
userdom_unconfined(unconfined_t)
|
|
Chris PeBenito |
ccfd7b |
userdom_priveleged_home_dir_manager(unconfined_t)
|
|
Chris PeBenito |
ccfd7b |
|
|
Chris PeBenito |
b281bf |
optional_policy(`amanda.te',`
|
|
Chris PeBenito |
b281bf |
amanda_domtrans_recover(unconfined_t)
|
|
Chris PeBenito |
b281bf |
')
|
|
Chris PeBenito |
b281bf |
|
|
Chris PeBenito |
08c22f |
optional_policy(`bind.te',`
|
|
Chris PeBenito |
08c22f |
bind_domtrans_ndc(unconfined_t)
|
|
Chris PeBenito |
08c22f |
')
|
|
Chris PeBenito |
08c22f |
|
|
Chris PeBenito |
08c22f |
optional_policy(`bluetooth.te',`
|
|
Chris PeBenito |
08c22f |
bluetooth_domtrans_helper(unconfined_t)
|
|
Chris PeBenito |
08c22f |
')
|
|
Chris PeBenito |
08c22f |
|
|
Chris PeBenito |
b281bf |
optional_policy(`dmidecode.te',`
|
|
Chris PeBenito |
b281bf |
dmidecode_domtrans(unconfined_t)
|
|
Chris PeBenito |
b281bf |
')
|
|
Chris PeBenito |
b281bf |
|
|
Chris PeBenito |
b281bf |
optional_policy(`firstboot.te',`
|
|
Chris PeBenito |
b281bf |
firstboot_domtrans(unconfined_t)
|
|
Chris PeBenito |
33acca |
')
|
|
Chris PeBenito |
33acca |
|
|
Chris PeBenito |
33acca |
optional_policy(`lpd.te',`
|
|
Chris PeBenito |
33acca |
lpd_domtrans_checkpc(unconfined_t)
|
|
Chris PeBenito |
33acca |
')
|
|
Chris PeBenito |
33acca |
|
|
Chris PeBenito |
ccfd7b |
optional_policy(`modutils.te',`
|
|
Chris PeBenito |
ccfd7b |
modutils_domtrans_depmod(unconfined_t)
|
|
Chris PeBenito |
ccfd7b |
modutils_domtrans_insmod(unconfined_t)
|
|
Chris PeBenito |
ccfd7b |
modutils_domtrans_update_mods(unconfined_t)
|
|
Chris PeBenito |
ccfd7b |
')
|
|
Chris PeBenito |
c98340 |
|
|
Chris PeBenito |
08c22f |
optional_policy(`netutils.te',`
|
|
Chris PeBenito |
08c22f |
netutils_domtrans(unconfined_t)
|
|
Chris PeBenito |
08c22f |
netutils_domtrans_ping(unconfined_t)
|
|
Chris PeBenito |
08c22f |
netutils_domtrans_traceroute(unconfined_t)
|
|
Chris PeBenito |
08c22f |
')
|
|
Chris PeBenito |
08c22f |
|
|
Chris PeBenito |
b281bf |
optional_policy(`portmap.te',`
|
|
Chris PeBenito |
b281bf |
portmap_domtrans_helper(unconfined_t)
|
|
Chris PeBenito |
b281bf |
')
|
|
Chris PeBenito |
b281bf |
|
|
Chris PeBenito |
88dd38 |
optional_policy(`postfix.te',`
|
|
Chris PeBenito |
88dd38 |
postfix_domtrans_map(unconfined_t)
|
|
Chris PeBenito |
88dd38 |
')
|
|
Chris PeBenito |
88dd38 |
|
|
Chris PeBenito |
f5e4f7 |
optional_policy(`rpm.te',`
|
|
Chris PeBenito |
f5e4f7 |
rpm_domtrans(unconfined_t)
|
|
Chris PeBenito |
f5e4f7 |
')
|
|
Chris PeBenito |
f5e4f7 |
|
|
Chris PeBenito |
671673 |
optional_policy(`samba.te',`
|
|
Chris PeBenito |
671673 |
samba_domtrans_net(unconfined_t)
|
|
Chris PeBenito |
b281bf |
samba_domtrans_winbind_helper(unconfined_t)
|
|
Chris PeBenito |
671673 |
')
|
|
Chris PeBenito |
671673 |
|
|
Chris PeBenito |
1dd86c |
optional_policy(`su.te',`
|
|
Chris PeBenito |
1dd86c |
su_per_userdomain_template(sysadm,unconfined_t,system_r)
|
|
Chris PeBenito |
1dd86c |
')
|
|
Chris PeBenito |
1dd86c |
|
|
Chris PeBenito |
a525f2 |
optional_policy(`webalizer.te',`
|
|
Chris PeBenito |
a525f2 |
webalizer_domtrans(unconfined_t)
|
|
Chris PeBenito |
a525f2 |
')
|
|
Chris PeBenito |
a525f2 |
|
|
Chris PeBenito |
c98340 |
ifdef(`TODO',`
|
|
Chris PeBenito |
77f6e2 |
ifdef(`use_mcs',`
|
|
Chris PeBenito |
77f6e2 |
rw_dir_create_file(sysadm_su_t, home_dir_type)
|
|
Chris PeBenito |
77f6e2 |
')
|
|
Chris PeBenito |
77f6e2 |
|
|
Chris PeBenito |
c98340 |
') dnl end TODO
|
|
Chris PeBenito |
69dcd6 |
typeattribute unconfined_t direct_run_init;
|
|
Chris PeBenito |
c98340 |
')
|