2006-10-02 15:22:48 +00:00
|
|
|
## <summary>GNU network object model environment (GNOME)</summary>
|
|
|
|
|
2008-11-05 16:10:46 +00:00
|
|
|
############################################################
|
2006-10-02 15:22:48 +00:00
|
|
|
## <summary>
|
2008-11-05 16:10:46 +00:00
|
|
|
## Role access for gnome
|
2006-10-02 15:22:48 +00:00
|
|
|
## </summary>
|
2008-11-05 16:10:46 +00:00
|
|
|
## <param name="role">
|
2006-10-02 15:22:48 +00:00
|
|
|
## <summary>
|
2008-11-05 16:10:46 +00:00
|
|
|
## Role allowed access
|
2006-10-02 15:22:48 +00:00
|
|
|
## </summary>
|
|
|
|
## </param>
|
2008-11-05 16:10:46 +00:00
|
|
|
## <param name="domain">
|
2006-10-02 15:22:48 +00:00
|
|
|
## <summary>
|
2008-11-05 16:10:46 +00:00
|
|
|
## User domain for the role
|
2006-10-02 15:22:48 +00:00
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
2008-11-05 16:10:46 +00:00
|
|
|
interface(`gnome_role',`
|
2006-10-02 15:22:48 +00:00
|
|
|
gen_require(`
|
2008-11-05 16:10:46 +00:00
|
|
|
type gconfd_t, gconfd_exec_t;
|
|
|
|
type gconf_tmp_t;
|
2006-10-02 15:22:48 +00:00
|
|
|
')
|
|
|
|
|
2008-11-05 16:10:46 +00:00
|
|
|
role $1 types gconfd_t;
|
2006-10-02 15:22:48 +00:00
|
|
|
|
2008-11-05 16:10:46 +00:00
|
|
|
domain_auto_trans($2, gconfd_exec_t, gconfd_t)
|
|
|
|
allow gconfd_t $2:fd use;
|
|
|
|
allow gconfd_t $2:fifo_file write;
|
|
|
|
allow gconfd_t $2:unix_stream_socket connectto;
|
2007-02-16 23:01:42 +00:00
|
|
|
|
2008-11-05 16:10:46 +00:00
|
|
|
ps_process_pattern($2, gconfd_t)
|
2006-10-02 15:22:48 +00:00
|
|
|
|
2008-11-05 16:10:46 +00:00
|
|
|
#gnome_stream_connect_gconf_template($1, $2)
|
|
|
|
read_files_pattern($2, gconf_tmp_t, gconf_tmp_t)
|
|
|
|
allow $2 gconfd_t:unix_stream_socket connectto;
|
2006-10-02 15:22:48 +00:00
|
|
|
')
|
2008-10-17 15:52:39 +00:00
|
|
|
|
2010-08-12 13:21:36 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
2010-08-26 14:27:35 +00:00
|
|
|
## gconf connection template.
|
2010-08-12 13:21:36 +00:00
|
|
|
## </summary>
|
2010-09-08 14:10:20 +00:00
|
|
|
## <param name="domain">
|
2010-08-12 13:21:36 +00:00
|
|
|
## <summary>
|
2010-09-08 14:10:20 +00:00
|
|
|
## Domain allowed access.
|
2010-08-12 13:21:36 +00:00
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
2010-08-26 14:27:35 +00:00
|
|
|
interface(`gnome_stream_connect_gconf',`
|
2010-08-12 13:21:36 +00:00
|
|
|
gen_require(`
|
2010-08-26 14:27:35 +00:00
|
|
|
type gconfd_t, gconf_tmp_t;
|
2010-08-12 13:21:36 +00:00
|
|
|
')
|
|
|
|
|
2010-08-26 14:27:35 +00:00
|
|
|
read_files_pattern($1, gconf_tmp_t, gconf_tmp_t)
|
|
|
|
allow $1 gconfd_t:unix_stream_socket connectto;
|
2010-08-12 13:21:36 +00:00
|
|
|
')
|
|
|
|
|
2010-08-26 14:27:35 +00:00
|
|
|
########################################
|
2010-08-12 13:21:36 +00:00
|
|
|
## <summary>
|
2010-08-26 14:27:35 +00:00
|
|
|
## Run gconfd in gconfd domain.
|
2010-08-12 13:21:36 +00:00
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
2010-08-26 14:27:35 +00:00
|
|
|
interface(`gnome_domtrans_gconfd',`
|
2010-08-12 13:21:36 +00:00
|
|
|
gen_require(`
|
2010-08-26 14:27:35 +00:00
|
|
|
type gconfd_t, gconfd_exec_t;
|
2010-08-12 13:21:36 +00:00
|
|
|
')
|
|
|
|
|
2010-08-26 14:27:35 +00:00
|
|
|
domtrans_pattern($1, gconfd_exec_t, gconfd_t)
|
2010-08-12 13:21:36 +00:00
|
|
|
')
|
|
|
|
|
2006-10-02 15:22:48 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
2010-08-26 14:27:35 +00:00
|
|
|
## Dontaudit search gnome homedir content (.config)
|
2006-10-02 15:22:48 +00:00
|
|
|
## </summary>
|
2010-09-08 14:10:20 +00:00
|
|
|
## <param name="domain">
|
2006-10-02 15:22:48 +00:00
|
|
|
## <summary>
|
2010-09-08 14:10:20 +00:00
|
|
|
## Domain allowed access.
|
2007-02-16 23:01:42 +00:00
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
2010-08-26 14:27:35 +00:00
|
|
|
interface(`gnome_dontaudit_search_config',`
|
2007-02-16 23:01:42 +00:00
|
|
|
gen_require(`
|
2010-08-26 14:27:35 +00:00
|
|
|
attribute gnome_home_type;
|
2007-02-16 23:01:42 +00:00
|
|
|
')
|
|
|
|
|
2010-08-26 14:27:35 +00:00
|
|
|
dontaudit $1 gnome_home_type:dir search_dir_perms;
|
2007-02-16 23:01:42 +00:00
|
|
|
')
|
|
|
|
|
2010-08-12 13:21:36 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
2010-08-26 14:27:35 +00:00
|
|
|
## manage gnome homedir content (.config)
|
2010-08-26 13:41:21 +00:00
|
|
|
## </summary>
|
2010-09-08 14:10:20 +00:00
|
|
|
## <param name="domain">
|
2010-08-26 13:41:21 +00:00
|
|
|
## <summary>
|
2010-09-08 14:10:20 +00:00
|
|
|
## Domain allowed access.
|
2010-08-26 13:41:21 +00:00
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
2010-08-26 14:27:35 +00:00
|
|
|
interface(`gnome_manage_config',`
|
2010-08-26 13:41:21 +00:00
|
|
|
gen_require(`
|
|
|
|
attribute gnome_home_type;
|
|
|
|
')
|
|
|
|
|
2010-08-26 14:27:35 +00:00
|
|
|
allow $1 gnome_home_type:dir manage_dir_perms;
|
|
|
|
allow $1 gnome_home_type:file manage_file_perms;
|
|
|
|
allow $1 gnome_home_type:lnk_file manage_lnk_file_perms;
|
|
|
|
userdom_search_user_home_dirs($1)
|
2010-08-26 13:41:21 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Send general signals to all gconf domains.
|
2010-08-12 13:21:36 +00:00
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
2010-08-26 13:41:21 +00:00
|
|
|
interface(`gnome_signal_all',`
|
2010-08-12 13:21:36 +00:00
|
|
|
gen_require(`
|
2010-08-26 13:41:21 +00:00
|
|
|
attribute gnomedomain;
|
2010-08-12 13:21:36 +00:00
|
|
|
')
|
|
|
|
|
2010-08-26 13:41:21 +00:00
|
|
|
allow $1 gnomedomain:process signal;
|
2010-08-12 13:21:36 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
2010-08-26 13:41:21 +00:00
|
|
|
## Create objects in a Gnome cache home directory
|
|
|
|
## with an automatic type transition to
|
|
|
|
## a specified private type.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
## <param name="private_type">
|
|
|
|
## <summary>
|
|
|
|
## The type of the object to create.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
## <param name="object_class">
|
|
|
|
## <summary>
|
|
|
|
## The class of the object to be created.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`gnome_cache_filetrans',`
|
|
|
|
gen_require(`
|
|
|
|
type cache_home_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
filetrans_pattern($1, cache_home_t, $2, $3)
|
|
|
|
userdom_search_user_home_dirs($1)
|
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Read generic cache home files (.cache)
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`gnome_read_generic_cache_files',`
|
|
|
|
gen_require(`
|
|
|
|
type cache_home_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
read_files_pattern($1, cache_home_t, cache_home_t)
|
|
|
|
userdom_search_user_home_dirs($1)
|
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Set attributes of cache home dir (.cache)
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`gnome_setattr_cache_home_dir',`
|
|
|
|
gen_require(`
|
|
|
|
type cache_home_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
setattr_dirs_pattern($1, cache_home_t, cache_home_t)
|
|
|
|
userdom_search_user_home_dirs($1)
|
|
|
|
')
|
|
|
|
|
2010-08-30 15:15:53 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## append to generic cache home files (.cache)
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`gnome_append_generic_cache_files',`
|
|
|
|
gen_require(`
|
|
|
|
type cache_home_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
append_files_pattern($1, cache_home_t, cache_home_t)
|
|
|
|
userdom_search_user_home_dirs($1)
|
|
|
|
')
|
|
|
|
|
2010-08-26 13:41:21 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## write to generic cache home files (.cache)
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`gnome_write_generic_cache_files',`
|
|
|
|
gen_require(`
|
|
|
|
type cache_home_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
write_files_pattern($1, cache_home_t, cache_home_t)
|
|
|
|
userdom_search_user_home_dirs($1)
|
|
|
|
')
|
|
|
|
|
2010-08-26 14:27:35 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## read gnome homedir content (.config)
|
|
|
|
## </summary>
|
2010-09-08 14:10:20 +00:00
|
|
|
## <param name="domain">
|
2010-08-26 14:27:35 +00:00
|
|
|
## <summary>
|
2010-09-08 14:10:20 +00:00
|
|
|
## Domain allowed access.
|
2010-08-26 14:27:35 +00:00
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
template(`gnome_read_config',`
|
|
|
|
gen_require(`
|
|
|
|
attribute gnome_home_type;
|
|
|
|
')
|
|
|
|
|
|
|
|
list_dirs_pattern($1, gnome_home_type, gnome_home_type)
|
|
|
|
read_files_pattern($1, gnome_home_type, gnome_home_type)
|
|
|
|
read_lnk_files_pattern($1, gnome_home_type, gnome_home_type)
|
|
|
|
')
|
|
|
|
|
2010-08-26 13:41:21 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Create objects in a Gnome gconf home directory
|
|
|
|
## with an automatic type transition to
|
|
|
|
## a specified private type.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
## <param name="private_type">
|
|
|
|
## <summary>
|
|
|
|
## The type of the object to create.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
## <param name="object_class">
|
|
|
|
## <summary>
|
|
|
|
## The class of the object to be created.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`gnome_data_filetrans',`
|
|
|
|
gen_require(`
|
|
|
|
type data_home_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
filetrans_pattern($1, data_home_t, $2, $3)
|
|
|
|
gnome_search_gconf($1)
|
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Create gconf_home_t objects in the /root directory
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
## <param name="object_class">
|
|
|
|
## <summary>
|
|
|
|
## The class of the object to be created.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`gnome_admin_home_gconf_filetrans',`
|
|
|
|
gen_require(`
|
|
|
|
type gconf_home_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
userdom_admin_home_dir_filetrans($1, gconf_home_t, $2)
|
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## read gconf config files
|
2010-08-12 13:21:36 +00:00
|
|
|
## </summary>
|
2010-09-08 14:10:20 +00:00
|
|
|
## <param name="domain">
|
2010-08-12 13:21:36 +00:00
|
|
|
## <summary>
|
2010-09-08 14:10:20 +00:00
|
|
|
## Domain allowed access.
|
2010-08-26 13:41:21 +00:00
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
2010-09-21 07:09:43 +00:00
|
|
|
interface(`gnome_read_gconf_config',`
|
2010-08-26 13:41:21 +00:00
|
|
|
gen_require(`
|
|
|
|
type gconf_etc_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
allow $1 gconf_etc_t:dir list_dir_perms;
|
|
|
|
read_files_pattern($1, gconf_etc_t, gconf_etc_t)
|
|
|
|
')
|
|
|
|
|
|
|
|
#######################################
|
|
|
|
## <summary>
|
|
|
|
## Manage gconf config files
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`gnome_manage_gconf_config',`
|
|
|
|
gen_require(`
|
|
|
|
type gconf_etc_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
allow $1 gconf_etc_t:dir list_dir_perms;
|
|
|
|
manage_files_pattern($1, gconf_etc_t, gconf_etc_t)
|
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Execute gconf programs in
|
|
|
|
## in the caller domain.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
2010-08-12 13:21:36 +00:00
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
2010-08-26 13:41:21 +00:00
|
|
|
interface(`gnome_exec_gconf',`
|
|
|
|
gen_require(`
|
|
|
|
type gconfd_exec_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
can_exec($1, gconfd_exec_t)
|
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Read gconf home files
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`gnome_read_gconf_home_files',`
|
|
|
|
gen_require(`
|
|
|
|
type gconf_home_t;
|
|
|
|
type data_home_t;
|
|
|
|
')
|
|
|
|
|
2010-09-23 14:22:26 +00:00
|
|
|
userdom_search_user_home_dirs($1)
|
2010-08-26 13:41:21 +00:00
|
|
|
allow $1 gconf_home_t:dir list_dir_perms;
|
|
|
|
allow $1 data_home_t:dir list_dir_perms;
|
|
|
|
read_files_pattern($1, gconf_home_t, gconf_home_t)
|
|
|
|
read_files_pattern($1, data_home_t, data_home_t)
|
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## search gconf homedir (.local)
|
|
|
|
## </summary>
|
2010-09-08 14:10:20 +00:00
|
|
|
## <param name="domain">
|
2010-08-26 13:41:21 +00:00
|
|
|
## <summary>
|
2010-09-08 14:10:20 +00:00
|
|
|
## Domain allowed access.
|
2010-08-26 13:41:21 +00:00
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`gnome_search_gconf',`
|
|
|
|
gen_require(`
|
|
|
|
type gconf_home_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
allow $1 gconf_home_t:dir search_dir_perms;
|
|
|
|
userdom_search_user_home_dirs($1)
|
|
|
|
')
|
|
|
|
|
2010-09-13 20:15:43 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Set attributes of Gnome config dirs.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`gnome_setattr_config_dirs',`
|
|
|
|
gen_require(`
|
|
|
|
type gnome_home_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
setattr_dirs_pattern($1, gnome_home_t, gnome_home_t)
|
|
|
|
files_search_home($1)
|
|
|
|
')
|
|
|
|
|
2010-08-26 13:41:21 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Append gconf home files
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`gnome_append_gconf_home_files',`
|
|
|
|
gen_require(`
|
|
|
|
type gconf_home_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
append_files_pattern($1, gconf_home_t, gconf_home_t)
|
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## manage gconf home files
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`gnome_manage_gconf_home_files',`
|
|
|
|
gen_require(`
|
|
|
|
type gconf_home_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
allow $1 gconf_home_t:dir list_dir_perms;
|
|
|
|
manage_files_pattern($1, gconf_home_t, gconf_home_t)
|
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Connect to gnome over an unix stream socket.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
## <param name="user_domain">
|
|
|
|
## <summary>
|
|
|
|
## The type of the user domain.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`gnome_stream_connect',`
|
|
|
|
gen_require(`
|
|
|
|
attribute gnome_home_type;
|
|
|
|
')
|
|
|
|
|
|
|
|
# Connect to pulseaudit server
|
|
|
|
stream_connect_pattern($1, gnome_home_type, gnome_home_type, $2)
|
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
2010-08-30 12:57:06 +00:00
|
|
|
## list gnome homedir content (.config)
|
2010-08-26 13:41:21 +00:00
|
|
|
## </summary>
|
2010-09-08 14:10:20 +00:00
|
|
|
## <param name="domain">
|
2010-08-26 13:41:21 +00:00
|
|
|
## <summary>
|
2010-09-08 14:10:20 +00:00
|
|
|
## Domain allowed access.
|
2010-08-26 13:41:21 +00:00
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
2010-09-21 07:09:43 +00:00
|
|
|
interface(`gnome_list_home_config',`
|
2010-08-26 13:41:21 +00:00
|
|
|
gen_require(`
|
|
|
|
type config_home_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
allow $1 config_home_t:dir list_dir_perms;
|
|
|
|
')
|
|
|
|
|
2010-09-13 18:47:02 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Set attributes of gnome homedir content (.config)
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
template(`gnome_setattr_home_config',`
|
|
|
|
gen_require(`
|
|
|
|
type config_home_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
setattr_dirs_pattern($1, config_home_t, config_home_t)
|
|
|
|
userdom_search_user_home_dirs($1)
|
|
|
|
')
|
|
|
|
|
2010-08-30 12:57:06 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## read gnome homedir content (.config)
|
|
|
|
## </summary>
|
2010-09-08 14:10:20 +00:00
|
|
|
## <param name="domain">
|
2010-08-30 12:57:06 +00:00
|
|
|
## <summary>
|
2010-09-08 14:10:20 +00:00
|
|
|
## Domain allowed access.
|
2010-08-30 12:57:06 +00:00
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
2010-09-21 07:09:43 +00:00
|
|
|
interface(`gnome_read_home_config',`
|
2010-08-30 12:57:06 +00:00
|
|
|
gen_require(`
|
|
|
|
type config_home_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
read_files_pattern($1, config_home_t, config_home_t)
|
|
|
|
')
|
|
|
|
|
2010-09-07 20:23:09 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## manage gnome homedir content (.config)
|
|
|
|
## </summary>
|
2010-09-08 14:10:20 +00:00
|
|
|
## <param name="domain">
|
2010-09-07 20:23:09 +00:00
|
|
|
## <summary>
|
2010-09-08 14:10:20 +00:00
|
|
|
## Domain allowed access.
|
2010-09-07 20:23:09 +00:00
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
template(`gnome_manage_home_config',`
|
|
|
|
gen_require(`
|
|
|
|
type config_home_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
manage_files_pattern($1, config_home_t, config_home_t)
|
|
|
|
')
|
|
|
|
|
2010-08-26 13:41:21 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Read/Write all inherited gnome home config
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`gnome_rw_inherited_config',`
|
|
|
|
gen_require(`
|
|
|
|
attribute gnome_home_type;
|
|
|
|
')
|
|
|
|
|
|
|
|
allow $1 gnome_home_type:file rw_inherited_file_perms;
|
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Send and receive messages from
|
|
|
|
## gconf system service over dbus.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`gnome_dbus_chat_gconfdefault',`
|
|
|
|
gen_require(`
|
|
|
|
type gconfdefaultsm_t;
|
|
|
|
class dbus send_msg;
|
|
|
|
')
|
|
|
|
|
|
|
|
allow $1 gconfdefaultsm_t:dbus send_msg;
|
|
|
|
allow gconfdefaultsm_t $1:dbus send_msg;
|
|
|
|
')
|