selinux-policy/policy/modules/system/unconfined.te

232 lines
4.4 KiB
Plaintext
Raw Normal View History

2005-07-05 20:59:51 +00:00
2010-05-24 19:32:01 +00:00
policy_module(unconfined, 3.2.0)
2005-07-05 20:59:51 +00:00
########################################
#
# Declarations
#
# usage in this module of types created by these
# calls is not correct, however we dont currently
# have another method to add access to these types
userdom_base_user_template(unconfined)
2008-11-05 16:10:46 +00:00
userdom_manage_home_role(unconfined_r, unconfined_t)
userdom_manage_tmp_role(unconfined_r, unconfined_t)
userdom_manage_tmpfs_role(unconfined_r, unconfined_t)
2005-07-05 20:59:51 +00:00
type unconfined_exec_t;
init_system_domain(unconfined_t, unconfined_exec_t)
type unconfined_execmem_t;
type unconfined_execmem_exec_t;
init_system_domain(unconfined_execmem_t, unconfined_execmem_exec_t)
role unconfined_r types unconfined_execmem_t;
2005-07-05 20:59:51 +00:00
########################################
#
# Local policy
#
domtrans_pattern(unconfined_t, unconfined_execmem_exec_t, unconfined_execmem_t)
files_create_boot_flag(unconfined_t)
mcs_killall(unconfined_t)
mcs_ptrace_all(unconfined_t)
2008-11-05 16:10:46 +00:00
init_run_daemon(unconfined_t, unconfined_r)
2008-11-05 16:10:46 +00:00
libs_run_ldconfig(unconfined_t, unconfined_r)
2005-07-08 20:44:57 +00:00
2005-07-05 20:59:51 +00:00
logging_send_syslog_msg(unconfined_t)
2008-11-05 16:10:46 +00:00
logging_run_auditctl(unconfined_t, unconfined_r)
2005-07-05 20:59:51 +00:00
2008-11-05 16:10:46 +00:00
mount_run_unconfined(unconfined_t, unconfined_r)
2005-07-06 20:28:29 +00:00
2008-11-05 16:10:46 +00:00
seutil_run_setfiles(unconfined_t, unconfined_r)
seutil_run_semanage(unconfined_t, unconfined_r)
unconfined_domain(unconfined_t)
2005-11-09 15:51:22 +00:00
2008-11-05 16:10:46 +00:00
userdom_user_home_dir_filetrans_user_home_content(unconfined_t, { dir file lnk_file fifo_file sock_file })
ifdef(`distro_gentoo',`
2008-11-05 16:10:46 +00:00
seutil_run_runinit(unconfined_t, unconfined_r)
seutil_init_script_run_runinit(unconfined_t, unconfined_r)
')
optional_policy(`
ada_domtrans(unconfined_t)
')
2005-07-08 20:44:57 +00:00
optional_policy(`
2008-11-05 16:10:46 +00:00
apache_run_helper(unconfined_t, unconfined_r)
apache_role(unconfined_r, unconfined_t)
')
optional_policy(`
2008-11-05 16:10:46 +00:00
bind_run_ndc(unconfined_t, unconfined_r)
')
optional_policy(`
2008-11-05 16:10:46 +00:00
bootloader_run(unconfined_t, unconfined_r)
')
optional_policy(`
2008-11-05 16:10:46 +00:00
cron_unconfined_role(unconfined_r, unconfined_t)
')
optional_policy(`
init_dbus_chat_script(unconfined_t)
2005-10-25 19:03:15 +00:00
dbus_stub(unconfined_t)
optional_policy(`
avahi_dbus_chat(unconfined_t)
2005-10-31 22:19:16 +00:00
')
optional_policy(`
bluetooth_dbus_chat(unconfined_t)
2005-10-27 15:16:42 +00:00
')
optional_policy(`
consolekit_dbus_chat(unconfined_t)
')
optional_policy(`
cups_dbus_chat_config(unconfined_t)
2005-11-25 16:43:03 +00:00
')
optional_policy(`
hal_dbus_chat(unconfined_t)
2005-10-26 16:00:13 +00:00
')
2006-06-13 18:17:34 +00:00
optional_policy(`
networkmanager_dbus_chat(unconfined_t)
2006-06-13 18:17:34 +00:00
')
optional_policy(`
oddjob_dbus_chat(unconfined_t)
')
')
optional_policy(`
2008-11-05 16:10:46 +00:00
firstboot_run(unconfined_t, unconfined_r)
')
optional_policy(`
2008-11-05 16:10:46 +00:00
ftp_run_ftpdctl(unconfined_t, unconfined_r)
')
2005-10-26 16:00:13 +00:00
optional_policy(`
inn_domtrans(unconfined_t)
')
2005-07-06 20:28:29 +00:00
optional_policy(`
java_run_unconfined(unconfined_t, unconfined_r)
')
optional_policy(`
2008-11-05 16:10:46 +00:00
lpd_run_checkpc(unconfined_t, unconfined_r)
')
optional_policy(`
2008-11-05 16:10:46 +00:00
modutils_run_update_mods(unconfined_t, unconfined_r)
')
optional_policy(`
mono_domtrans(unconfined_t)
')
optional_policy(`
2008-11-05 16:10:46 +00:00
mta_role(unconfined_r, unconfined_t)
')
optional_policy(`
oddjob_domtrans_mkhomedir(unconfined_t)
')
2005-10-25 00:00:50 +00:00
optional_policy(`
2008-11-05 16:10:46 +00:00
prelink_run(unconfined_t, unconfined_r)
')
2005-10-26 13:51:33 +00:00
optional_policy(`
2008-11-05 16:10:46 +00:00
portmap_run_helper(unconfined_t, unconfined_r)
')
2005-10-24 21:33:46 +00:00
optional_policy(`
2008-11-05 16:10:46 +00:00
postfix_run_map(unconfined_t, unconfined_r)
# cjp: this should probably be removed:
postfix_domtrans_master(unconfined_t)
')
2006-01-11 15:28:14 +00:00
optional_policy(`
2008-11-05 16:10:46 +00:00
pyzor_role(unconfined_r, unconfined_t)
')
optional_policy(`
# cjp: this should probably be removed:
rpc_domtrans_nfsd(unconfined_t)
')
2005-11-09 15:51:22 +00:00
optional_policy(`
2008-11-05 16:10:46 +00:00
rpm_run(unconfined_t, unconfined_r)
')
optional_policy(`
2008-11-05 16:10:46 +00:00
samba_run_net(unconfined_t, unconfined_r)
samba_run_winbind_helper(unconfined_t, unconfined_r)
')
2005-10-27 14:52:37 +00:00
optional_policy(`
2008-11-05 16:10:46 +00:00
spamassassin_role(unconfined_r, unconfined_t)
')
optional_policy(`
2008-11-05 16:10:46 +00:00
sysnet_run_dhcpc(unconfined_t, unconfined_r)
sysnet_dbus_chat_dhcpc(unconfined_t)
')
optional_policy(`
2008-11-05 16:10:46 +00:00
tzdata_run(unconfined_t, unconfined_r)
')
optional_policy(`
2008-11-05 16:10:46 +00:00
usermanage_run_admin_passwd(unconfined_t, unconfined_r)
')
optional_policy(`
2008-11-05 16:10:46 +00:00
vpn_run(unconfined_t, unconfined_r)
')
optional_policy(`
2008-11-05 16:10:46 +00:00
webalizer_run(unconfined_t, unconfined_r)
')
optional_policy(`
wine_domtrans(unconfined_t)
')
optional_policy(`
2008-11-05 16:10:46 +00:00
xserver_domtrans(unconfined_t)
2005-07-06 20:28:29 +00:00
')
########################################
#
# Unconfined Execmem Local policy
#
allow unconfined_execmem_t self:process { execstack execmem };
unconfined_domain_noaudit(unconfined_execmem_t)
optional_policy(`
dbus_stub(unconfined_execmem_t)
init_dbus_chat_script(unconfined_execmem_t)
unconfined_dbus_chat(unconfined_execmem_t)
optional_policy(`
hal_dbus_chat(unconfined_execmem_t)
')
')