Chris PeBenito ab8f91
policy_module(gnome, 2.0.1)
Chris PeBenito 002190
Chris PeBenito 002190
##############################
Chris PeBenito 002190
#
Chris PeBenito 002190
# Declarations
Chris PeBenito 002190
#
Chris PeBenito 002190
Chris PeBenito 6b19be
attribute gnomedomain;
Dan Walsh 3eaa99
attribute gnome_home_type;
Chris PeBenito 6b19be
Chris PeBenito 002190
type gconf_etc_t;
Chris PeBenito ab8f91
files_config_file(gconf_etc_t)
Chris PeBenito 002190
Dan Walsh 3eaa99
type data_home_t, gnome_home_type;
Dan Walsh 3eaa99
userdom_user_home_content(data_home_t)
Dan Walsh 3eaa99
Dan Walsh 3eaa99
type config_home_t, gnome_home_type;
Dan Walsh 3eaa99
userdom_user_home_content(config_home_t)
Dan Walsh 3eaa99
Dan Walsh 3eaa99
type cache_home_t, gnome_home_type;
Dan Walsh 3eaa99
userdom_user_home_content(cache_home_t)
Dan Walsh 3eaa99
Dan Walsh 3eaa99
type gstreamer_home_t, gnome_home_type;
Dan Walsh 3eaa99
userdom_user_home_content(gstreamer_home_t)
Dan Walsh 3eaa99
Dan Walsh 3eaa99
type gconf_home_t, gnome_home_type;
Chris PeBenito 296273
typealias gconf_home_t alias { user_gconf_home_t staff_gconf_home_t sysadm_gconf_home_t };
Chris PeBenito 296273
typealias gconf_home_t alias { auditadm_gconf_home_t secadm_gconf_home_t };
Chris PeBenito ab8f91
typealias gconf_home_t alias unconfined_gconf_home_t;
Chris PeBenito 296273
userdom_user_home_content(gconf_home_t)
Chris PeBenito 296273
Chris PeBenito 296273
type gconf_tmp_t;
Chris PeBenito 296273
typealias gconf_tmp_t alias { user_gconf_tmp_t staff_gconf_tmp_t sysadm_gconf_tmp_t };
Chris PeBenito 296273
typealias gconf_tmp_t alias { auditadm_gconf_tmp_t secadm_gconf_tmp_t };
Chris PeBenito ab8f91
typealias gconf_tmp_t alias unconfined_gconf_tmp_t;
Chris PeBenito 296273
files_tmp_file(gconf_tmp_t)
Chris PeBenito 296273
ubac_constrained(gconf_tmp_t)
Chris PeBenito 296273
Chris PeBenito 296273
type gconfd_t, gnomedomain;
Chris PeBenito 002190
type gconfd_exec_t;
Chris PeBenito 296273
typealias gconfd_t alias { user_gconfd_t staff_gconfd_t sysadm_gconfd_t };
Chris PeBenito 296273
typealias gconfd_t alias { auditadm_gconfd_t secadm_gconfd_t };
Chris PeBenito 296273
application_domain(gconfd_t, gconfd_exec_t)
Chris PeBenito 296273
ubac_constrained(gconfd_t)
Chris PeBenito 296273
Dan Walsh 3eaa99
type gnome_home_t, gnome_home_type;
Chris PeBenito 296273
typealias gnome_home_t alias { user_gnome_home_t staff_gnome_home_t sysadm_gnome_home_t };
Chris PeBenito 296273
typealias gnome_home_t alias { auditadm_gnome_home_t secadm_gnome_home_t };
Chris PeBenito ab8f91
typealias gnome_home_t alias unconfined_gnome_home_t;
Chris PeBenito 296273
userdom_user_home_content(gnome_home_t)
Chris PeBenito 296273
Dan Walsh 3eaa99
type gconfdefaultsm_t;
Dan Walsh 3eaa99
type gconfdefaultsm_exec_t;
Dan Walsh 3eaa99
dbus_system_domain(gconfdefaultsm_t, gconfdefaultsm_exec_t)
Dan Walsh 3eaa99
Dan Walsh 3eaa99
type gnomesystemmm_t;
Dan Walsh 3eaa99
type gnomesystemmm_exec_t;
Dan Walsh 3eaa99
dbus_system_domain(gnomesystemmm_t, gnomesystemmm_exec_t)
Dan Walsh 3eaa99
Chris PeBenito 296273
##############################
Chris PeBenito 296273
#
Chris PeBenito 296273
# Local Policy
Chris PeBenito 296273
#
Chris PeBenito 296273
Chris PeBenito 296273
allow gconfd_t self:process getsched;
Chris PeBenito 296273
allow gconfd_t self:fifo_file rw_fifo_file_perms;
Chris PeBenito 296273
Chris PeBenito 296273
manage_dirs_pattern(gconfd_t, gconf_home_t, gconf_home_t)
Chris PeBenito 296273
manage_files_pattern(gconfd_t, gconf_home_t, gconf_home_t)
Chris PeBenito 296273
userdom_user_home_dir_filetrans(gconfd_t, gconf_home_t, dir)
Chris PeBenito 296273
Chris PeBenito 296273
manage_dirs_pattern(gconfd_t, gconf_tmp_t, gconf_tmp_t)
Chris PeBenito 296273
manage_files_pattern(gconfd_t, gconf_tmp_t, gconf_tmp_t)
Chris PeBenito 296273
userdom_user_tmp_filetrans(gconfd_t, gconf_tmp_t, { dir file })
Chris PeBenito 296273
Chris PeBenito 296273
allow gconfd_t gconf_etc_t:dir list_dir_perms;
Chris PeBenito 296273
read_files_pattern(gconfd_t, gconf_etc_t, gconf_etc_t)
Chris PeBenito 296273
Chris PeBenito 296273
dev_read_urand(gconfd_t)
Chris PeBenito 296273
Chris PeBenito 296273
files_read_etc_files(gconfd_t)
Chris PeBenito 296273
Chris PeBenito 296273
miscfiles_read_localization(gconfd_t)
Chris PeBenito 296273
Chris PeBenito 296273
logging_send_syslog_msg(gconfd_t)
Chris PeBenito 296273
Chris PeBenito 296273
userdom_manage_user_tmp_sockets(gconfd_t)
Chris PeBenito 296273
userdom_manage_user_tmp_dirs(gconfd_t)
Chris PeBenito 296273
userdom_tmp_filetrans_user_tmp(gconfd_t, dir)
Chris PeBenito 296273
Chris PeBenito 296273
optional_policy(`
Chris PeBenito 296273
	nscd_dontaudit_search_pid(gconfd_t)
Chris PeBenito 296273
')
Chris PeBenito 296273
Chris PeBenito 296273
optional_policy(`
Chris PeBenito 296273
	xserver_use_xdm_fds(gconfd_t)
Chris PeBenito 296273
	xserver_rw_xdm_pipes(gconfd_t)
Chris PeBenito 296273
')
Dan Walsh 3eaa99
Dan Walsh 3eaa99
tunable_policy(`use_nfs_home_dirs',`
Dan Walsh 3eaa99
        fs_manage_nfs_dirs(gconfdefaultsm_t)
Dan Walsh 3eaa99
        fs_manage_nfs_files(gconfdefaultsm_t)
Dan Walsh 3eaa99
')
Dan Walsh 3eaa99
Dan Walsh 3eaa99
tunable_policy(`use_samba_home_dirs',`
Dan Walsh 3eaa99
        fs_manage_cifs_dirs(gconfdefaultsm_t)
Dan Walsh 3eaa99
        fs_manage_cifs_files(gconfdefaultsm_t)
Dan Walsh 3eaa99
')
Dan Walsh 3eaa99
Dan Walsh 3eaa99
#######################################
Dan Walsh 3eaa99
#
Dan Walsh 3eaa99
# gconf-defaults-mechanisms local policy
Dan Walsh 3eaa99
#
Dan Walsh 3eaa99
Dan Walsh 3eaa99
allow gconfdefaultsm_t self:capability { dac_override sys_nice sys_ptrace };
Dan Walsh 3eaa99
allow gconfdefaultsm_t self:process getsched;
Dan Walsh 3eaa99
allow gconfdefaultsm_t self:fifo_file rw_fifo_file_perms;
Dan Walsh 3eaa99
Dan Walsh 3eaa99
corecmd_search_bin(gconfdefaultsm_t)
Dan Walsh 3eaa99
Dan Walsh 3eaa99
files_read_etc_files(gconfdefaultsm_t)
Dan Walsh 3eaa99
files_read_usr_files(gconfdefaultsm_t)
Dan Walsh 3eaa99
Dan Walsh 3eaa99
miscfiles_read_localization(gconfdefaultsm_t)
Dan Walsh 3eaa99
Dan Walsh 3eaa99
gnome_manage_gconf_home_files(gconfdefaultsm_t)
Dan Walsh 3eaa99
gnome_manage_gconf_config(gconfdefaultsm_t)
Dan Walsh 3eaa99
Dan Walsh 3eaa99
userdom_read_all_users_state(gconfdefaultsm_t)
Dan Walsh 3eaa99
userdom_search_user_home_dirs(gconfdefaultsm_t)
Dan Walsh 3eaa99
Dan Walsh 3eaa99
userdom_dontaudit_search_admin_dir(gconfdefaultsm_t)
Dan Walsh 3eaa99
Dan Walsh 3eaa99
optional_policy(`
Dan Walsh 3eaa99
        consolekit_dbus_chat(gconfdefaultsm_t)
Dan Walsh 3eaa99
')
Dan Walsh 3eaa99
Dan Walsh 3eaa99
optional_policy(`
Dan Walsh 3eaa99
        nscd_dontaudit_search_pid(gconfdefaultsm_t)
Dan Walsh 3eaa99
')
Dan Walsh 3eaa99
Dan Walsh 3eaa99
optional_policy(`
Dan Walsh 3eaa99
        policykit_domtrans_auth(gconfdefaultsm_t)
Dan Walsh 3eaa99
        policykit_dbus_chat(gconfdefaultsm_t)
Dan Walsh 3eaa99
        policykit_read_lib(gconfdefaultsm_t)
Dan Walsh 3eaa99
        policykit_read_reload(gconfdefaultsm_t)
Dan Walsh 3eaa99
')
Dan Walsh 3eaa99
Dan Walsh 3eaa99
#######################################
Dan Walsh 3eaa99
#
Dan Walsh 3eaa99
# gnome-system-monitor-mechanisms local policy
Dan Walsh 3eaa99
#
Dan Walsh 3eaa99
Dan Walsh 3eaa99
allow gnomesystemmm_t self:capability { sys_nice sys_ptrace };
Dan Walsh 3eaa99
allow gnomesystemmm_t self:fifo_file rw_fifo_file_perms;
Dan Walsh 3eaa99
Dan Walsh 3eaa99
corecmd_search_bin(gnomesystemmm_t)
Dan Walsh 3eaa99
Dan Walsh 3eaa99
domain_kill_all_domains(gnomesystemmm_t)
Dan Walsh 3eaa99
domain_search_all_domains_state(gnomesystemmm_t)
Dan Walsh 3eaa99
domain_setpriority_all_domains(gnomesystemmm_t)
Dan Walsh 3eaa99
domain_signal_all_domains(gnomesystemmm_t)
Dan Walsh 3eaa99
domain_sigstop_all_domains(gnomesystemmm_t)
Dan Walsh 3eaa99
Dan Walsh 3eaa99
files_read_etc_files(gnomesystemmm_t)
Dan Walsh 3eaa99
files_read_usr_files(gnomesystemmm_t)
Dan Walsh 3eaa99
Dan Walsh 3eaa99
miscfiles_read_localization(gnomesystemmm_t)
Dan Walsh 3eaa99
Dan Walsh 3eaa99
userdom_read_all_users_state(gnomesystemmm_t)
Dan Walsh 3eaa99
userdom_dontaudit_search_admin_dir(gnomesystemmm_t)
Dan Walsh 3eaa99
Dan Walsh 3eaa99
optional_policy(`
Dan Walsh 3eaa99
        consolekit_dbus_chat(gnomesystemmm_t)
Dan Walsh 3eaa99
')
Dan Walsh 3eaa99
Dan Walsh 3eaa99
optional_policy(`
Dan Walsh 3eaa99
        nscd_dontaudit_search_pid(gnomesystemmm_t)
Dan Walsh 3eaa99
')
Dan Walsh 3eaa99
Dan Walsh 3eaa99
optional_policy(`
Dan Walsh 3eaa99
        policykit_dbus_chat(gnomesystemmm_t)
Dan Walsh 3eaa99
        policykit_domtrans_auth(gnomesystemmm_t)
Dan Walsh 3eaa99
        policykit_read_lib(gnomesystemmm_t)
Dan Walsh 3eaa99
        policykit_read_reload(gnomesystemmm_t)
Dan Walsh 3eaa99
')