2005-07-05 20:59:51 +00:00
|
|
|
|
2005-11-29 21:27:15 +00:00
|
|
|
policy_module(unconfined,1.0.3)
|
2005-07-05 20:59:51 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
|
2005-10-13 20:59:36 +00:00
|
|
|
# real declaration moved to mls until
|
|
|
|
# range_transition works in loadable modules
|
|
|
|
gen_require(`
|
|
|
|
type unconfined_t;
|
|
|
|
')
|
2005-07-05 20:59:51 +00:00
|
|
|
type unconfined_exec_t;
|
|
|
|
init_system_domain(unconfined_t,unconfined_exec_t)
|
|
|
|
role system_r types unconfined_t;
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Local policy
|
|
|
|
#
|
|
|
|
|
2005-07-06 20:28:29 +00:00
|
|
|
unconfined_domain_template(unconfined_t)
|
2005-07-08 20:44:57 +00:00
|
|
|
|
2005-07-05 20:59:51 +00:00
|
|
|
logging_send_syslog_msg(unconfined_t)
|
|
|
|
|
2005-07-06 20:28:29 +00:00
|
|
|
ifdef(`targeted_policy',`
|
|
|
|
allow unconfined_t self:system syslog_read;
|
2005-11-01 15:34:00 +00:00
|
|
|
dontaudit unconfined_t self:capability sys_module;
|
2005-07-06 20:28:29 +00:00
|
|
|
|
2005-11-09 15:51:22 +00:00
|
|
|
files_create_boot_flag(unconfined_t)
|
|
|
|
|
2005-07-08 20:44:57 +00:00
|
|
|
init_domtrans_script(unconfined_t)
|
|
|
|
|
2005-10-27 15:06:15 +00:00
|
|
|
libs_domtrans_ldconfig(unconfined_t)
|
|
|
|
|
|
|
|
logging_domtrans_auditctl(unconfined_t)
|
|
|
|
|
|
|
|
seutil_domtrans_restorecon(unconfined_t)
|
|
|
|
|
2005-07-06 20:28:29 +00:00
|
|
|
userdom_unconfined(unconfined_t)
|
2005-10-25 19:03:15 +00:00
|
|
|
userdom_priveleged_home_dir_manager(unconfined_t)
|
|
|
|
|
2005-11-23 20:24:27 +00:00
|
|
|
optional_policy(`amanda',`
|
2005-10-27 15:06:15 +00:00
|
|
|
amanda_domtrans_recover(unconfined_t)
|
|
|
|
')
|
|
|
|
|
2005-11-23 20:24:27 +00:00
|
|
|
optional_policy(`apache',`
|
2005-10-31 22:19:16 +00:00
|
|
|
apache_domtrans_helper(unconfined_t)
|
|
|
|
')
|
|
|
|
|
2005-11-23 20:24:27 +00:00
|
|
|
optional_policy(`bind',`
|
2005-10-27 15:16:42 +00:00
|
|
|
bind_domtrans_ndc(unconfined_t)
|
|
|
|
')
|
|
|
|
|
2005-11-23 20:24:27 +00:00
|
|
|
optional_policy(`bluetooth',`
|
2005-10-27 15:16:42 +00:00
|
|
|
bluetooth_domtrans_helper(unconfined_t)
|
|
|
|
')
|
|
|
|
|
2005-11-25 16:43:03 +00:00
|
|
|
optional_policy(`dbus',`
|
|
|
|
dbus_stub(unconfined_t)
|
|
|
|
|
2005-11-29 21:27:15 +00:00
|
|
|
optional_policy(`avahi',`
|
|
|
|
avahi_dbus_chat(unconfined_t)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`hal',`
|
|
|
|
hal_dbus_chat(unconfined_t)
|
|
|
|
')
|
|
|
|
|
2005-11-25 16:43:03 +00:00
|
|
|
optional_policy(`networkmanager',`
|
|
|
|
networkmanager_dbus_chat(unconfined_t)
|
|
|
|
')
|
|
|
|
')
|
|
|
|
|
2005-11-23 20:24:27 +00:00
|
|
|
optional_policy(`dmidecode',`
|
2005-10-27 15:06:15 +00:00
|
|
|
dmidecode_domtrans(unconfined_t)
|
|
|
|
')
|
|
|
|
|
2005-11-23 20:24:27 +00:00
|
|
|
optional_policy(`firstboot',`
|
2005-10-27 15:06:15 +00:00
|
|
|
firstboot_domtrans(unconfined_t)
|
2005-10-26 16:00:13 +00:00
|
|
|
')
|
|
|
|
|
2005-11-23 20:24:27 +00:00
|
|
|
optional_policy(`lpd',`
|
2005-10-26 16:00:13 +00:00
|
|
|
lpd_domtrans_checkpc(unconfined_t)
|
|
|
|
')
|
|
|
|
|
2005-11-23 20:24:27 +00:00
|
|
|
optional_policy(`modutils',`
|
2005-10-25 19:03:15 +00:00
|
|
|
modutils_domtrans_update_mods(unconfined_t)
|
|
|
|
')
|
2005-07-06 20:28:29 +00:00
|
|
|
|
2005-11-23 20:24:27 +00:00
|
|
|
optional_policy(`netutils',`
|
2005-10-27 15:16:42 +00:00
|
|
|
netutils_domtrans_ping(unconfined_t)
|
|
|
|
')
|
|
|
|
|
2005-11-23 20:24:27 +00:00
|
|
|
optional_policy(`portmap',`
|
2005-10-27 15:06:15 +00:00
|
|
|
portmap_domtrans_helper(unconfined_t)
|
|
|
|
')
|
|
|
|
|
2005-11-23 20:24:27 +00:00
|
|
|
optional_policy(`postfix',`
|
2005-10-25 00:00:50 +00:00
|
|
|
postfix_domtrans_map(unconfined_t)
|
2005-11-16 21:08:52 +00:00
|
|
|
# cjp: this should probably be removed:
|
|
|
|
postfix_domtrans_master(unconfined_t)
|
|
|
|
')
|
|
|
|
|
2005-11-23 20:24:27 +00:00
|
|
|
optional_policy(`rpc',`
|
2005-11-16 21:08:52 +00:00
|
|
|
# cjp: this should probably be removed:
|
|
|
|
rpc_domtrans_nfsd(unconfined_t)
|
2005-10-25 00:00:50 +00:00
|
|
|
')
|
|
|
|
|
2005-11-23 20:24:27 +00:00
|
|
|
optional_policy(`rpm',`
|
2005-10-26 13:51:33 +00:00
|
|
|
rpm_domtrans(unconfined_t)
|
|
|
|
')
|
|
|
|
|
2005-11-23 20:24:27 +00:00
|
|
|
optional_policy(`samba',`
|
2005-10-24 21:33:46 +00:00
|
|
|
samba_domtrans_net(unconfined_t)
|
2005-10-27 15:06:15 +00:00
|
|
|
samba_domtrans_winbind_helper(unconfined_t)
|
2005-10-24 21:33:46 +00:00
|
|
|
')
|
|
|
|
|
2005-11-23 20:24:27 +00:00
|
|
|
optional_policy(`su',`
|
2005-10-24 12:38:45 +00:00
|
|
|
su_per_userdomain_template(sysadm,unconfined_t,system_r)
|
|
|
|
')
|
|
|
|
|
2005-11-23 20:24:27 +00:00
|
|
|
optional_policy(`sysnetwork',`
|
2005-11-16 21:08:52 +00:00
|
|
|
sysnet_domtrans_dhcpc(unconfined_t)
|
|
|
|
')
|
|
|
|
|
2005-11-23 20:24:27 +00:00
|
|
|
optional_policy(`usermanage',`
|
2005-11-09 15:51:22 +00:00
|
|
|
usermanage_domtrans_admin_passwd(unconfined_t)
|
|
|
|
')
|
|
|
|
|
2005-11-23 20:24:27 +00:00
|
|
|
optional_policy(`webalizer',`
|
2005-10-27 14:52:37 +00:00
|
|
|
webalizer_domtrans(unconfined_t)
|
|
|
|
')
|
|
|
|
|
2005-07-06 20:28:29 +00:00
|
|
|
ifdef(`TODO',`
|
2005-10-13 20:59:36 +00:00
|
|
|
ifdef(`use_mcs',`
|
|
|
|
rw_dir_create_file(sysadm_su_t, home_dir_type)
|
|
|
|
')
|
2005-07-06 20:28:29 +00:00
|
|
|
') dnl end TODO
|
|
|
|
')
|