|
Dan Walsh |
3eaa99 |
policy_module(unconfineduser, 1.0.0)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
########################################
|
|
Dan Walsh |
3eaa99 |
#
|
|
Dan Walsh |
3eaa99 |
# Declarations
|
|
Dan Walsh |
3eaa99 |
#
|
|
Dan Walsh |
3eaa99 |
attribute unconfined_login_domain;
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
## <desc>
|
|
Dan Walsh |
3eaa99 |
##
|
|
Dan Walsh |
3eaa99 |
## Transition to confined nsplugin domains from unconfined user
|
|
Dan Walsh |
3eaa99 |
##
|
|
Dan Walsh |
3eaa99 |
## </desc>
|
|
Dan Walsh |
3eaa99 |
gen_tunable(allow_unconfined_nsplugin_transition, false)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
## <desc>
|
|
Dan Walsh |
3eaa99 |
##
|
|
Dan Walsh |
dfe675 |
## Allow vidio playing tools to tun unconfined
|
|
Dan Walsh |
dfe675 |
##
|
|
Dan Walsh |
dfe675 |
## </desc>
|
|
Dan Walsh |
dfe675 |
gen_tunable(unconfined_mplayer, false)
|
|
Dan Walsh |
dfe675 |
|
|
Dan Walsh |
dfe675 |
## <desc>
|
|
Dan Walsh |
dfe675 |
##
|
|
Dan Walsh |
3eaa99 |
## Allow a user to login as an unconfined domain
|
|
Dan Walsh |
3eaa99 |
##
|
|
Dan Walsh |
3eaa99 |
## </desc>
|
|
Dan Walsh |
3eaa99 |
gen_tunable(unconfined_login, true)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
## <desc>
|
|
Dan Walsh |
3eaa99 |
##
|
|
Dan Walsh |
3eaa99 |
## Transition to confined qemu domains from unconfined user
|
|
Dan Walsh |
3eaa99 |
##
|
|
Dan Walsh |
3eaa99 |
## </desc>
|
|
Dan Walsh |
3eaa99 |
gen_tunable(allow_unconfined_qemu_transition, false)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
# usage in this module of types created by these
|
|
Dan Walsh |
3eaa99 |
# calls is not correct, however we dont currently
|
|
Dan Walsh |
3eaa99 |
# have another method to add access to these types
|
|
Dan Walsh |
3eaa99 |
userdom_base_user_template(unconfined)
|
|
Dan Walsh |
3eaa99 |
userdom_manage_home_role(unconfined_r, unconfined_t)
|
|
Dan Walsh |
3eaa99 |
userdom_manage_tmp_role(unconfined_r, unconfined_t)
|
|
Dan Walsh |
3eaa99 |
userdom_manage_tmpfs_role(unconfined_r, unconfined_t)
|
|
Dan Walsh |
3eaa99 |
userdom_unpriv_usertype(unconfined, unconfined_t)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
type unconfined_exec_t;
|
|
Dan Walsh |
3eaa99 |
init_system_domain(unconfined_t, unconfined_exec_t)
|
|
Dan Walsh |
3eaa99 |
role unconfined_r types unconfined_t;
|
|
Dan Walsh |
3eaa99 |
role_transition system_r unconfined_exec_t unconfined_r;
|
|
Dan Walsh |
3eaa99 |
allow system_r unconfined_r;
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
domain_user_exemption_target(unconfined_t)
|
|
Dan Walsh |
3eaa99 |
allow system_r unconfined_r;
|
|
Dan Walsh |
3eaa99 |
allow unconfined_r system_r;
|
|
Dan Walsh |
3eaa99 |
init_script_role_transition(unconfined_r)
|
|
Dan Walsh |
3eaa99 |
role system_r types unconfined_t;
|
|
Dan Walsh |
3eaa99 |
typealias unconfined_t alias unconfined_crontab_t;
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
type unconfined_notrans_t;
|
|
Dan Walsh |
3eaa99 |
type unconfined_notrans_exec_t;
|
|
Dan Walsh |
3eaa99 |
init_system_domain(unconfined_notrans_t, unconfined_notrans_exec_t)
|
|
Dan Walsh |
3eaa99 |
role unconfined_r types unconfined_notrans_t;
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
########################################
|
|
Dan Walsh |
3eaa99 |
#
|
|
Dan Walsh |
3eaa99 |
# Local policy
|
|
Dan Walsh |
3eaa99 |
#
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
dontaudit unconfined_t self:dir write;
|
|
Dan Walsh |
3eaa99 |
dontaudit unconfined_t self:file setattr;
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
allow unconfined_t self:system syslog_read;
|
|
Dan Walsh |
3eaa99 |
dontaudit unconfined_t self:capability sys_module;
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
files_create_boot_flag(unconfined_t)
|
|
Dan Walsh |
3eaa99 |
files_create_default_dir(unconfined_t)
|
|
Dan Walsh |
3eaa99 |
files_root_filetrans_default(unconfined_t, dir)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
mcs_killall(unconfined_t)
|
|
Dan Walsh |
3eaa99 |
mcs_ptrace_all(unconfined_t)
|
|
Dan Walsh |
3eaa99 |
mls_file_write_all_levels(unconfined_t)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
init_run_daemon(unconfined_t, unconfined_r)
|
|
Dan Walsh |
3eaa99 |
init_domtrans_script(unconfined_t)
|
|
Dan Walsh |
3eaa99 |
init_telinit(unconfined_t)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
libs_run_ldconfig(unconfined_t, unconfined_r)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
logging_send_syslog_msg(unconfined_t)
|
|
Dan Walsh |
3eaa99 |
logging_run_auditctl(unconfined_t, unconfined_r)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
mount_run_unconfined(unconfined_t, unconfined_r)
|
|
Dan Walsh |
3eaa99 |
# Unconfined running as system_r
|
|
Dan Walsh |
3eaa99 |
mount_domtrans_unconfined(unconfined_t)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
seutil_run_setsebool(unconfined_t, unconfined_r)
|
|
Dan Walsh |
3eaa99 |
seutil_run_setfiles(unconfined_t, unconfined_r)
|
|
Dan Walsh |
3eaa99 |
seutil_run_semanage(unconfined_t, unconfined_r)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
unconfined_domain_noaudit(unconfined_t)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
userdom_user_home_dir_filetrans_user_home_content(unconfined_t, { dir file lnk_file fifo_file sock_file })
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
usermanage_run_passwd(unconfined_t, unconfined_r)
|
|
Dan Walsh |
3eaa99 |
usermanage_run_chfn(unconfined_t, unconfined_r)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
tunable_policy(`allow_execmem',`
|
|
Dan Walsh |
3eaa99 |
allow unconfined_t self:process execmem;
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
tunable_policy(`allow_execmem && allow_execstack',`
|
|
Dan Walsh |
3eaa99 |
allow unconfined_t self:process execstack;
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
tunable_policy(`allow_execmod',`
|
|
Dan Walsh |
3eaa99 |
userdom_execmod_user_home_files(unconfined_usertype)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
tunable_policy(`unconfined_login',`
|
|
Dan Walsh |
3eaa99 |
corecmd_shell_domtrans(unconfined_login_domain,unconfined_t)
|
|
Dan Walsh |
3eaa99 |
allow unconfined_t unconfined_login_domain:fd use;
|
|
Dan Walsh |
3eaa99 |
allow unconfined_t unconfined_login_domain:fifo_file rw_file_perms;
|
|
Dan Walsh |
3eaa99 |
allow unconfined_t unconfined_login_domain:process sigchld;
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
gen_require(`
|
|
Dan Walsh |
3eaa99 |
attribute unconfined_usertype;
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
nsplugin_role_notrans(unconfined_r, unconfined_usertype)
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
tunable_policy(`allow_unconfined_nsplugin_transition',`
|
|
Dan Walsh |
3eaa99 |
nsplugin_domtrans(unconfined_usertype)
|
|
Dan Walsh |
3eaa99 |
nsplugin_domtrans_config(unconfined_usertype)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
abrt_dbus_chat(unconfined_usertype)
|
|
Dan Walsh |
3eaa99 |
abrt_run_helper(unconfined_usertype, unconfined_r)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
avahi_dbus_chat(unconfined_usertype)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
certmonger_dbus_chat(unconfined_usertype)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
devicekit_dbus_chat(unconfined_usertype)
|
|
Dan Walsh |
3eaa99 |
devicekit_dbus_chat_disk(unconfined_usertype)
|
|
Dan Walsh |
3eaa99 |
devicekit_dbus_chat_power(unconfined_usertype)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
hal_dbus_chat(unconfined_usertype)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
iptables_run(unconfined_usertype, unconfined_r)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
networkmanager_dbus_chat(unconfined_usertype)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
policykit_role(unconfined_r, unconfined_usertype)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
rtkit_scheduled(unconfined_usertype)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
setroubleshoot_dbus_chat(unconfined_usertype)
|
|
Dan Walsh |
3eaa99 |
setroubleshoot_dbus_chat_fixit(unconfined_t)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
sandbox_transition(unconfined_usertype, unconfined_r)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
shutdown_run(unconfined_t, unconfined_r)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
tzdata_run(unconfined_usertype, unconfined_r)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
2d4a79 |
gen_require(`
|
|
Dan Walsh |
2d4a79 |
type user_tmpfs_t;
|
|
Dan Walsh |
2d4a79 |
')
|
|
Dan Walsh |
2d4a79 |
|
|
Dan Walsh |
2d4a79 |
xserver_rw_session(unconfined_usertype, user_tmpfs_t)
|
|
Dan Walsh |
3eaa99 |
xserver_run_xauth(unconfined_usertype, unconfined_r)
|
|
Dan Walsh |
3eaa99 |
xserver_dbus_chat_xdm(unconfined_usertype)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
ifdef(`distro_gentoo',`
|
|
Dan Walsh |
3eaa99 |
seutil_run_runinit(unconfined_t, unconfined_r)
|
|
Dan Walsh |
3eaa99 |
seutil_init_script_run_runinit(unconfined_t, unconfined_r)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
accountsd_dbus_chat(unconfined_t)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
ada_run(unconfined_t, unconfined_r)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
apache_run_helper(unconfined_t, unconfined_r)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
bind_run_ndc(unconfined_t, unconfined_r)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
bootloader_run(unconfined_t, unconfined_r)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
cron_unconfined_role(unconfined_r, unconfined_t)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
035275 |
chrome_role(unconfined_r, unconfined_usertype)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
dbus_role_template(unconfined, unconfined_r, unconfined_t)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
unconfined_domain(unconfined_dbusd_t)
|
|
Dan Walsh |
3eaa99 |
unconfined_execmem_domtrans(unconfined_dbusd_t)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
xserver_rw_shm(unconfined_dbusd_t)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
init_dbus_chat(unconfined_usertype)
|
|
Dan Walsh |
3eaa99 |
init_dbus_chat_script(unconfined_usertype)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
dbus_stub(unconfined_t)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
bluetooth_dbus_chat(unconfined_usertype)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
consolekit_dbus_chat(unconfined_usertype)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
cups_dbus_chat_config(unconfined_usertype)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
fprintd_dbus_chat(unconfined_usertype)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
gnomeclock_dbus_chat(unconfined_usertype)
|
|
Dan Walsh |
3eaa99 |
gnome_dbus_chat_gconfdefault(unconfined_usertype)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
ipsec_mgmt_dbus_chat(unconfined_usertype)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
kerneloops_dbus_chat(unconfined_usertype)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
oddjob_dbus_chat(unconfined_usertype)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
vpn_dbus_chat(unconfined_usertype)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
firewallgui_dbus_chat(unconfined_usertype)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
firstboot_run(unconfined_t, unconfined_r)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
ftp_run_ftpdctl(unconfined_t, unconfined_r)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
gpsd_run(unconfined_t, unconfined_r)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
java_run_unconfined(unconfined_t, unconfined_r)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
livecd_run(unconfined_t, unconfined_r)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
lpd_run_checkpc(unconfined_t, unconfined_r)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
modutils_run_update_mods(unconfined_t, unconfined_r)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
mono_role_template(unconfined, unconfined_r, unconfined_t)
|
|
Dan Walsh |
3eaa99 |
unconfined_domain_noaudit(unconfined_mono_t)
|
|
Dan Walsh |
3eaa99 |
role system_r types unconfined_mono_t;
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
mozilla_run_plugin(unconfined_usertype, unconfined_r)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
ncftool_run(unconfined_t, unconfined_r)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
oddjob_run_mkhomedir(unconfined_t, unconfined_r)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
prelink_run(unconfined_t, unconfined_r)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
portmap_run_helper(unconfined_t, unconfined_r)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
#optional_policy(`
|
|
Dan Walsh |
3eaa99 |
# ppp_run(unconfined_t, unconfined_r)
|
|
Dan Walsh |
3eaa99 |
#')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
qemu_unconfined_role(unconfined_r)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
tunable_policy(`allow_unconfined_qemu_transition',`
|
|
Dan Walsh |
3eaa99 |
qemu_domtrans(unconfined_t)
|
|
Dan Walsh |
3eaa99 |
',`
|
|
Dan Walsh |
3eaa99 |
qemu_domtrans_unconfined(unconfined_t)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
rpm_run(unconfined_t, unconfined_r)
|
|
Dan Walsh |
3eaa99 |
# Allow SELinux aware applications to request rpm_script execution
|
|
Dan Walsh |
3eaa99 |
rpm_transition_script(unconfined_t)
|
|
Dan Walsh |
3eaa99 |
rpm_dbus_chat(unconfined_t)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
samba_role_notrans(unconfined_r)
|
|
Dan Walsh |
3eaa99 |
samba_run_unconfined_net(unconfined_t, unconfined_r)
|
|
Dan Walsh |
3eaa99 |
# samba_run_winbind_helper(unconfined_t, unconfined_r)
|
|
Dan Walsh |
3eaa99 |
samba_run_smbcontrol(unconfined_t, unconfined_r)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
sendmail_run_unconfined(unconfined_t, unconfined_r)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
sysnet_run_dhcpc(unconfined_t, unconfined_r)
|
|
Dan Walsh |
3eaa99 |
sysnet_dbus_chat_dhcpc(unconfined_t)
|
|
Dan Walsh |
3eaa99 |
sysnet_role_transition_dhcpc(unconfined_r)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
telepathy_dbus_session_role(unconfined_r, unconfined_t)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
vbetool_run(unconfined_t, unconfined_r)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
virt_transition_svirt(unconfined_t, unconfined_r)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
vpn_run(unconfined_t, unconfined_r)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
webalizer_run(unconfined_t, unconfined_r)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
wine_run(unconfined_t, unconfined_r)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
xserver_run(unconfined_t, unconfined_r)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
########################################
|
|
Dan Walsh |
3eaa99 |
#
|
|
Dan Walsh |
3eaa99 |
# Unconfined Execmem Local policy
|
|
Dan Walsh |
3eaa99 |
#
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
execmem_role_template(unconfined, unconfined_r, unconfined_t)
|
|
Dan Walsh |
3eaa99 |
typealias unconfined_execmem_t alias execmem_t;
|
|
Dan Walsh |
3eaa99 |
typealias unconfined_execmem_t alias unconfined_openoffice_t;
|
|
Dan Walsh |
3eaa99 |
unconfined_domain_noaudit(unconfined_execmem_t)
|
|
Dan Walsh |
3eaa99 |
allow unconfined_execmem_t unconfined_t:process transition;
|
|
Dan Walsh |
3eaa99 |
rpm_transition_script(unconfined_execmem_t)
|
|
Dan Walsh |
3eaa99 |
role system_r types unconfined_execmem_t;
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
init_dbus_chat_script(unconfined_execmem_t)
|
|
Dan Walsh |
3eaa99 |
dbus_system_bus_client(unconfined_execmem_t)
|
|
Dan Walsh |
3eaa99 |
unconfined_dbus_chat(unconfined_execmem_t)
|
|
Dan Walsh |
3eaa99 |
unconfined_dbus_connect(unconfined_execmem_t)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
tunable_policy(`allow_unconfined_nsplugin_transition',`', `
|
|
Dan Walsh |
3eaa99 |
nsplugin_exec_domtrans(unconfined_t, unconfined_execmem_t)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
dfe675 |
tunable_policy(`unconfined_login',`
|
|
Dan Walsh |
dfe675 |
mplayer_exec_domtrans(unconfined_t, unconfined_execmem_t)
|
|
Dan Walsh |
dfe675 |
')
|
|
Dan Walsh |
dfe675 |
')
|
|
Dan Walsh |
dfe675 |
|
|
Dan Walsh |
dfe675 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
openoffice_exec_domtrans(unconfined_t, unconfined_execmem_t)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
########################################
|
|
Dan Walsh |
3eaa99 |
#
|
|
Dan Walsh |
3eaa99 |
# Unconfined notrans Local policy
|
|
Dan Walsh |
3eaa99 |
#
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
allow unconfined_notrans_t self:process { execstack execmem };
|
|
Dan Walsh |
3eaa99 |
unconfined_domain_noaudit(unconfined_notrans_t)
|
|
Dan Walsh |
3eaa99 |
userdom_unpriv_usertype(unconfined, unconfined_notrans_t)
|
|
Dan Walsh |
3eaa99 |
domtrans_pattern(unconfined_t, unconfined_notrans_exec_t, unconfined_notrans_t)
|
|
Dan Walsh |
3eaa99 |
# Allow SELinux aware applications to request rpm_script execution
|
|
Dan Walsh |
3eaa99 |
rpm_transition_script(unconfined_notrans_t)
|
|
Dan Walsh |
3eaa99 |
domain_ptrace_all_domains(unconfined_notrans_t)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
########################################
|
|
Dan Walsh |
3eaa99 |
#
|
|
Dan Walsh |
3eaa99 |
# Unconfined mount local policy
|
|
Dan Walsh |
3eaa99 |
#
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
gen_user(unconfined_u, user, unconfined_r system_r, s0, s0 - mls_systemhigh, mcs_allcats)
|
|
Dan Walsh |
3eaa99 |
|