selinux-policy/refpolicy/policy/modules/system/unconfined.te
Chris PeBenito 33acca55ce pile o fixes
2005-10-26 16:00:13 +00:00

77 lines
1.5 KiB
Plaintext

policy_module(unconfined,1.0)
########################################
#
# Declarations
#
# real declaration moved to mls until
# range_transition works in loadable modules
gen_require(`
type unconfined_t;
')
type unconfined_exec_t;
init_system_domain(unconfined_t,unconfined_exec_t)
role system_r types unconfined_t;
########################################
#
# Local policy
#
unconfined_domain_template(unconfined_t)
logging_send_syslog_msg(unconfined_t)
ifdef(`targeted_policy',`
allow unconfined_t self:system syslog_read;
# Define some type aliases to help with compatibility with
# macros and domains from the "strict" policy.
typealias unconfined_t alias { secadm_t sysadm_t };
init_domtrans_script(unconfined_t)
userdom_unconfined(unconfined_t)
userdom_priveleged_home_dir_manager(unconfined_t)
optional_policy(`logging.te',`
logging_domtrans_auditctl(unconfined_t)
')
optional_policy(`lpd.te',`
lpd_domtrans_checkpc(unconfined_t)
')
optional_policy(`modutils.te',`
modutils_domtrans_depmod(unconfined_t)
modutils_domtrans_insmod(unconfined_t)
modutils_domtrans_update_mods(unconfined_t)
')
optional_policy(`postfix.te',`
postfix_domtrans_map(unconfined_t)
')
optional_policy(`rpm.te',`
rpm_domtrans(unconfined_t)
')
optional_policy(`samba.te',`
samba_domtrans_net(unconfined_t)
')
optional_policy(`su.te',`
su_per_userdomain_template(sysadm,unconfined_t,system_r)
')
ifdef(`TODO',`
ifdef(`use_mcs',`
rw_dir_create_file(sysadm_su_t, home_dir_type)
')
') dnl end TODO
typeattribute unconfined_t direct_run_init;
')