2005-07-05 20:59:51 +00:00
|
|
|
|
2008-04-02 16:04:43 +00:00
|
|
|
policy_module(unconfined,2.2.0)
|
2005-07-05 20:59:51 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
|
2007-10-02 16:04:50 +00:00
|
|
|
# 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)
|
|
|
|
userdom_manage_home_template(unconfined)
|
|
|
|
userdom_manage_tmp_template(unconfined)
|
|
|
|
userdom_manage_tmpfs_template(unconfined)
|
|
|
|
|
2005-07-05 20:59:51 +00:00
|
|
|
type unconfined_exec_t;
|
2007-10-02 16:04:50 +00:00
|
|
|
init_system_domain(unconfined_t, unconfined_exec_t)
|
2006-06-07 17:43:10 +00:00
|
|
|
|
2007-10-02 16:04:50 +00:00
|
|
|
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
|
|
|
|
#
|
|
|
|
|
2007-10-02 16:04:50 +00:00
|
|
|
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)
|
|
|
|
|
|
|
|
init_run_daemon(unconfined_t, unconfined_r, { unconfined_devpts_t unconfined_tty_device_t })
|
|
|
|
|
|
|
|
libs_run_ldconfig(unconfined_t, unconfined_r, { unconfined_devpts_t unconfined_tty_device_t })
|
2005-07-08 20:44:57 +00:00
|
|
|
|
2005-07-05 20:59:51 +00:00
|
|
|
logging_send_syslog_msg(unconfined_t)
|
2007-10-02 16:04:50 +00:00
|
|
|
logging_run_auditctl(unconfined_t, unconfined_r, { unconfined_devpts_t unconfined_tty_device_t })
|
2005-07-05 20:59:51 +00:00
|
|
|
|
2007-10-02 16:04:50 +00:00
|
|
|
mount_run_unconfined(unconfined_t, unconfined_r, { unconfined_devpts_t unconfined_tty_device_t })
|
2005-07-06 20:28:29 +00:00
|
|
|
|
2007-10-02 16:04:50 +00:00
|
|
|
seutil_run_setfiles(unconfined_t, unconfined_r, { unconfined_devpts_t unconfined_tty_device_t })
|
|
|
|
seutil_run_semanage(unconfined_t, unconfined_r, { unconfined_devpts_t unconfined_tty_device_t })
|
2006-06-07 17:43:10 +00:00
|
|
|
|
2007-10-02 16:04:50 +00:00
|
|
|
unconfined_domain(unconfined_t)
|
2005-11-09 15:51:22 +00:00
|
|
|
|
2007-10-02 16:04:50 +00:00
|
|
|
userdom_priveleged_home_dir_manager(unconfined_t)
|
2006-12-04 20:10:56 +00:00
|
|
|
|
2007-10-02 16:04:50 +00:00
|
|
|
optional_policy(`
|
|
|
|
ada_domtrans(unconfined_t)
|
|
|
|
')
|
2005-07-08 20:44:57 +00:00
|
|
|
|
2007-10-02 16:04:50 +00:00
|
|
|
optional_policy(`
|
|
|
|
apache_run_helper(unconfined_t, unconfined_r, { unconfined_devpts_t unconfined_tty_device_t })
|
|
|
|
apache_per_role_template(unconfined, unconfined_t, unconfined_r)
|
|
|
|
# this is disallowed usage:
|
|
|
|
unconfined_domain(httpd_unconfined_script_t)
|
|
|
|
')
|
2005-10-27 15:06:15 +00:00
|
|
|
|
2007-10-02 16:04:50 +00:00
|
|
|
optional_policy(`
|
|
|
|
bind_run_ndc(unconfined_t, unconfined_r, { unconfined_devpts_t unconfined_tty_device_t })
|
|
|
|
')
|
2005-10-27 15:06:15 +00:00
|
|
|
|
2007-10-02 16:04:50 +00:00
|
|
|
optional_policy(`
|
|
|
|
bootloader_run(unconfined_t, unconfined_r, { unconfined_devpts_t unconfined_tty_device_t })
|
|
|
|
')
|
2006-04-19 15:25:22 +00:00
|
|
|
|
2007-10-02 16:04:50 +00:00
|
|
|
optional_policy(`
|
|
|
|
cron_per_role_template(unconfined, unconfined_t, unconfined_r)
|
|
|
|
# this is disallowed usage:
|
|
|
|
unconfined_domain(unconfined_crond_t)
|
|
|
|
')
|
2005-10-27 15:06:15 +00:00
|
|
|
|
2007-10-02 16:04:50 +00:00
|
|
|
optional_policy(`
|
|
|
|
init_dbus_chat_script(unconfined_t)
|
2005-10-25 19:03:15 +00:00
|
|
|
|
2007-10-02 16:04:50 +00:00
|
|
|
dbus_stub(unconfined_t)
|
2006-04-12 15:04:28 +00:00
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2007-10-02 16:04:50 +00:00
|
|
|
avahi_dbus_chat(unconfined_t)
|
2005-10-31 22:19:16 +00:00
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2007-10-02 16:04:50 +00:00
|
|
|
bluetooth_dbus_chat(unconfined_t)
|
2005-10-27 15:16:42 +00:00
|
|
|
')
|
|
|
|
|
2007-02-16 23:01:42 +00:00
|
|
|
optional_policy(`
|
2007-10-02 16:04:50 +00:00
|
|
|
consolekit_dbus_chat(unconfined_t)
|
2007-02-16 23:01:42 +00:00
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2007-10-02 16:04:50 +00:00
|
|
|
cups_dbus_chat_config(unconfined_t)
|
2005-11-25 16:43:03 +00:00
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2007-10-02 16:04:50 +00:00
|
|
|
hal_dbus_chat(unconfined_t)
|
2005-10-26 16:00:13 +00:00
|
|
|
')
|
|
|
|
|
2006-06-13 18:17:34 +00:00
|
|
|
optional_policy(`
|
2007-10-02 16:04:50 +00:00
|
|
|
networkmanager_dbus_chat(unconfined_t)
|
2006-06-13 18:17:34 +00:00
|
|
|
')
|
|
|
|
|
2006-05-17 14:50:31 +00:00
|
|
|
optional_policy(`
|
2007-10-02 16:04:50 +00:00
|
|
|
oddjob_dbus_chat(unconfined_t)
|
2006-05-17 14:50:31 +00:00
|
|
|
')
|
2007-10-02 16:04:50 +00:00
|
|
|
')
|
2006-05-17 14:50:31 +00:00
|
|
|
|
2007-10-02 16:04:50 +00:00
|
|
|
optional_policy(`
|
|
|
|
firstboot_run(unconfined_t, unconfined_r, { unconfined_devpts_t unconfined_tty_device_t })
|
|
|
|
')
|
2006-02-20 16:31:54 +00:00
|
|
|
|
2007-10-02 16:04:50 +00:00
|
|
|
optional_policy(`
|
|
|
|
ftp_run_ftpdctl(unconfined_t, unconfined_r, { unconfined_devpts_t unconfined_tty_device_t })
|
|
|
|
')
|
2005-10-26 16:00:13 +00:00
|
|
|
|
2007-10-02 16:04:50 +00:00
|
|
|
optional_policy(`
|
|
|
|
inn_domtrans(unconfined_t)
|
|
|
|
')
|
2005-07-06 20:28:29 +00:00
|
|
|
|
2007-10-02 16:04:50 +00:00
|
|
|
optional_policy(`
|
|
|
|
java_domtrans(unconfined_t)
|
|
|
|
')
|
2006-02-13 22:05:08 +00:00
|
|
|
|
2007-10-02 16:04:50 +00:00
|
|
|
optional_policy(`
|
|
|
|
lpd_run_checkpc(unconfined_t, unconfined_r, { unconfined_devpts_t unconfined_tty_device_t })
|
|
|
|
')
|
2006-09-28 14:37:29 +00:00
|
|
|
|
2007-10-02 16:04:50 +00:00
|
|
|
optional_policy(`
|
|
|
|
modutils_run_update_mods(unconfined_t, unconfined_r, { unconfined_devpts_t unconfined_tty_device_t })
|
|
|
|
')
|
2006-05-17 14:50:31 +00:00
|
|
|
|
2007-10-02 16:04:50 +00:00
|
|
|
optional_policy(`
|
|
|
|
mono_domtrans(unconfined_t)
|
|
|
|
')
|
2005-10-27 15:06:15 +00:00
|
|
|
|
2007-10-02 16:04:50 +00:00
|
|
|
optional_policy(`
|
|
|
|
mta_per_role_template(unconfined, unconfined_t, unconfined_r)
|
|
|
|
')
|
2005-11-16 21:08:52 +00:00
|
|
|
|
2007-10-02 16:04:50 +00:00
|
|
|
optional_policy(`
|
|
|
|
oddjob_domtrans_mkhomedir(unconfined_t)
|
|
|
|
')
|
2005-10-25 00:00:50 +00:00
|
|
|
|
2007-10-02 16:04:50 +00:00
|
|
|
optional_policy(`
|
|
|
|
prelink_run(unconfined_t, unconfined_r, { unconfined_devpts_t unconfined_tty_device_t })
|
|
|
|
')
|
2005-10-26 13:51:33 +00:00
|
|
|
|
2007-10-02 16:04:50 +00:00
|
|
|
optional_policy(`
|
|
|
|
portmap_run_helper(unconfined_t, unconfined_r, { unconfined_devpts_t unconfined_tty_device_t })
|
|
|
|
')
|
2005-10-24 21:33:46 +00:00
|
|
|
|
2007-10-02 16:04:50 +00:00
|
|
|
optional_policy(`
|
|
|
|
postfix_run_map(unconfined_t, unconfined_r, { unconfined_devpts_t unconfined_tty_device_t })
|
|
|
|
# cjp: this should probably be removed:
|
|
|
|
postfix_domtrans_master(unconfined_t)
|
|
|
|
')
|
2006-01-11 15:28:14 +00:00
|
|
|
|
2005-11-16 21:08:52 +00:00
|
|
|
|
2007-10-02 16:04:50 +00:00
|
|
|
optional_policy(`
|
|
|
|
pyzor_per_role_template(unconfined)
|
|
|
|
')
|
2007-02-16 23:01:42 +00:00
|
|
|
|
2007-10-02 16:04:50 +00:00
|
|
|
optional_policy(`
|
|
|
|
# cjp: this should probably be removed:
|
|
|
|
rpc_domtrans_nfsd(unconfined_t)
|
|
|
|
')
|
2005-11-09 15:51:22 +00:00
|
|
|
|
2007-10-02 16:04:50 +00:00
|
|
|
optional_policy(`
|
|
|
|
rpm_run(unconfined_t, unconfined_r, { unconfined_devpts_t unconfined_tty_device_t })
|
|
|
|
')
|
2006-02-20 16:31:54 +00:00
|
|
|
|
2007-10-02 16:04:50 +00:00
|
|
|
optional_policy(`
|
|
|
|
samba_per_role_template(unconfined)
|
|
|
|
samba_run_net(unconfined_t, unconfined_r, { unconfined_devpts_t unconfined_tty_device_t })
|
|
|
|
samba_run_winbind_helper(unconfined_t, unconfined_r, { unconfined_devpts_t unconfined_tty_device_t })
|
|
|
|
')
|
2005-10-27 14:52:37 +00:00
|
|
|
|
2007-10-02 16:04:50 +00:00
|
|
|
optional_policy(`
|
|
|
|
spamassassin_per_role_template(unconfined, unconfined_t, unconfined_r)
|
|
|
|
')
|
2006-02-06 22:47:46 +00:00
|
|
|
|
2007-10-02 16:04:50 +00:00
|
|
|
optional_policy(`
|
|
|
|
sysnet_run_dhcpc(unconfined_t, unconfined_r, { unconfined_devpts_t unconfined_tty_device_t })
|
|
|
|
sysnet_dbus_chat_dhcpc(unconfined_t)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
tzdata_run(unconfined_t, unconfined_r, { unconfined_devpts_t unconfined_tty_device_t })
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
usermanage_run_admin_passwd(unconfined_t, unconfined_r, { unconfined_devpts_t unconfined_tty_device_t })
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
vpn_run(unconfined_t, unconfined_r, { unconfined_devpts_t unconfined_tty_device_t })
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
webalizer_run(unconfined_t, unconfined_r, { unconfined_devpts_t unconfined_tty_device_t })
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
wine_domtrans(unconfined_t)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
xserver_domtrans_xdm_xserver(unconfined_t)
|
2005-07-06 20:28:29 +00:00
|
|
|
')
|
2006-06-07 17:43:10 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Unconfined Execmem Local policy
|
|
|
|
#
|
|
|
|
|
2007-10-02 16:04:50 +00:00
|
|
|
allow unconfined_execmem_t self:process { execstack execmem };
|
|
|
|
unconfined_domain_noaudit(unconfined_execmem_t)
|
2006-08-29 02:41:00 +00:00
|
|
|
|
2007-10-02 16:04:50 +00:00
|
|
|
optional_policy(`
|
|
|
|
dbus_stub(unconfined_execmem_t)
|
2006-08-29 02:41:00 +00:00
|
|
|
|
2007-10-02 16:04:50 +00:00
|
|
|
init_dbus_chat_script(unconfined_execmem_t)
|
|
|
|
unconfined_dbus_chat(unconfined_execmem_t)
|
2006-12-04 20:10:56 +00:00
|
|
|
|
2007-10-02 16:04:50 +00:00
|
|
|
optional_policy(`
|
|
|
|
hal_dbus_chat(unconfined_execmem_t)
|
2006-08-29 02:41:00 +00:00
|
|
|
')
|
2006-06-07 17:43:10 +00:00
|
|
|
')
|