|
Chris PeBenito |
002190 |
## <summary>GNU network object model environment (GNOME)</summary>
|
|
Chris PeBenito |
002190 |
|
|
Chris PeBenito |
296273 |
############################################################
|
|
Chris PeBenito |
002190 |
## <summary>
|
|
Chris PeBenito |
296273 |
## Role access for gnome
|
|
Chris PeBenito |
002190 |
## </summary>
|
|
Chris PeBenito |
296273 |
## <param name="role">
|
|
Chris PeBenito |
002190 |
## <summary>
|
|
Chris PeBenito |
296273 |
## Role allowed access
|
|
Chris PeBenito |
002190 |
## </summary>
|
|
Chris PeBenito |
002190 |
## </param>
|
|
Chris PeBenito |
296273 |
## <param name="domain">
|
|
Chris PeBenito |
002190 |
## <summary>
|
|
Chris PeBenito |
296273 |
## User domain for the role
|
|
Chris PeBenito |
002190 |
## </summary>
|
|
Chris PeBenito |
002190 |
## </param>
|
|
Chris PeBenito |
002190 |
#
|
|
Chris PeBenito |
296273 |
interface(`gnome_role',`
|
|
Chris PeBenito |
002190 |
gen_require(`
|
|
Chris PeBenito |
296273 |
type gconfd_t, gconfd_exec_t;
|
|
Chris PeBenito |
296273 |
type gconf_tmp_t;
|
|
Chris PeBenito |
002190 |
')
|
|
Chris PeBenito |
002190 |
|
|
Chris PeBenito |
296273 |
role $1 types gconfd_t;
|
|
Chris PeBenito |
002190 |
|
|
Chris PeBenito |
296273 |
domain_auto_trans($2, gconfd_exec_t, gconfd_t)
|
|
Chris PeBenito |
296273 |
allow gconfd_t $2:fd use;
|
|
Chris PeBenito |
296273 |
allow gconfd_t $2:fifo_file write;
|
|
Chris PeBenito |
296273 |
allow gconfd_t $2:unix_stream_socket connectto;
|
|
Chris PeBenito |
6b19be |
|
|
Chris PeBenito |
296273 |
ps_process_pattern($2, gconfd_t)
|
|
Chris PeBenito |
002190 |
|
|
Chris PeBenito |
296273 |
#gnome_stream_connect_gconf_template($1, $2)
|
|
Chris PeBenito |
296273 |
read_files_pattern($2, gconf_tmp_t, gconf_tmp_t)
|
|
Chris PeBenito |
296273 |
allow $2 gconfd_t:unix_stream_socket connectto;
|
|
Chris PeBenito |
002190 |
')
|
|
Chris PeBenito |
2a9837 |
|
|
Chris PeBenito |
002190 |
########################################
|
|
Chris PeBenito |
002190 |
## <summary>
|
|
Dan Walsh |
a947da |
## gconf connection template.
|
|
Chris PeBenito |
ab8f91 |
## </summary>
|
|
Dan Walsh |
aa760a |
## <param name="domain">
|
|
Chris PeBenito |
ab8f91 |
## <summary>
|
|
Dan Walsh |
aa760a |
## Domain allowed access.
|
|
Chris PeBenito |
ab8f91 |
## </summary>
|
|
Chris PeBenito |
ab8f91 |
## </param>
|
|
Chris PeBenito |
ab8f91 |
#
|
|
Dan Walsh |
a947da |
interface(`gnome_stream_connect_gconf',`
|
|
Chris PeBenito |
ab8f91 |
gen_require(`
|
|
Dan Walsh |
a947da |
type gconfd_t, gconf_tmp_t;
|
|
Chris PeBenito |
ab8f91 |
')
|
|
Chris PeBenito |
ab8f91 |
|
|
Dan Walsh |
a947da |
read_files_pattern($1, gconf_tmp_t, gconf_tmp_t)
|
|
Dan Walsh |
a947da |
allow $1 gconfd_t:unix_stream_socket connectto;
|
|
Chris PeBenito |
ab8f91 |
')
|
|
Chris PeBenito |
ab8f91 |
|
|
Dan Walsh |
a947da |
########################################
|
|
Chris PeBenito |
ab8f91 |
## <summary>
|
|
Dan Walsh |
a947da |
## Run gconfd in gconfd domain.
|
|
Chris PeBenito |
ab8f91 |
## </summary>
|
|
Chris PeBenito |
ab8f91 |
## <param name="domain">
|
|
Chris PeBenito |
ab8f91 |
## <summary>
|
|
Chris PeBenito |
ab8f91 |
## Domain allowed access.
|
|
Chris PeBenito |
ab8f91 |
## </summary>
|
|
Chris PeBenito |
ab8f91 |
## </param>
|
|
Chris PeBenito |
ab8f91 |
#
|
|
Dan Walsh |
a947da |
interface(`gnome_domtrans_gconfd',`
|
|
Chris PeBenito |
ab8f91 |
gen_require(`
|
|
Dan Walsh |
a947da |
type gconfd_t, gconfd_exec_t;
|
|
Chris PeBenito |
ab8f91 |
')
|
|
Chris PeBenito |
ab8f91 |
|
|
Dan Walsh |
a947da |
domtrans_pattern($1, gconfd_exec_t, gconfd_t)
|
|
Chris PeBenito |
ab8f91 |
')
|
|
Chris PeBenito |
ab8f91 |
|
|
Chris PeBenito |
ab8f91 |
########################################
|
|
Chris PeBenito |
ab8f91 |
## <summary>
|
|
Dan Walsh |
a947da |
## Dontaudit search gnome homedir content (.config)
|
|
Chris PeBenito |
002190 |
## </summary>
|
|
Dan Walsh |
aa760a |
## <param name="domain">
|
|
Chris PeBenito |
002190 |
## <summary>
|
|
Dan Walsh |
aa760a |
## Domain allowed access.
|
|
Chris PeBenito |
6b19be |
## </summary>
|
|
Chris PeBenito |
6b19be |
## </param>
|
|
Chris PeBenito |
6b19be |
#
|
|
Dan Walsh |
a947da |
interface(`gnome_dontaudit_search_config',`
|
|
Chris PeBenito |
6b19be |
gen_require(`
|
|
Dan Walsh |
a947da |
attribute gnome_home_type;
|
|
Chris PeBenito |
6b19be |
')
|
|
Chris PeBenito |
6b19be |
|
|
Dan Walsh |
a947da |
dontaudit $1 gnome_home_type:dir search_dir_perms;
|
|
Chris PeBenito |
6b19be |
')
|
|
Chris PeBenito |
6b19be |
|
|
Chris PeBenito |
6b19be |
########################################
|
|
Chris PeBenito |
6b19be |
## <summary>
|
|
Dan Walsh |
a947da |
## manage gnome homedir content (.config)
|
|
Dan Walsh |
3eaa99 |
## </summary>
|
|
Dan Walsh |
aa760a |
## <param name="domain">
|
|
Dan Walsh |
3eaa99 |
## <summary>
|
|
Dan Walsh |
aa760a |
## Domain allowed access.
|
|
Dan Walsh |
3eaa99 |
## </summary>
|
|
Dan Walsh |
3eaa99 |
## </param>
|
|
Dan Walsh |
3eaa99 |
#
|
|
Dan Walsh |
a947da |
interface(`gnome_manage_config',`
|
|
Dan Walsh |
3eaa99 |
gen_require(`
|
|
Dan Walsh |
3eaa99 |
attribute gnome_home_type;
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
a947da |
allow $1 gnome_home_type:dir manage_dir_perms;
|
|
Dan Walsh |
a947da |
allow $1 gnome_home_type:file manage_file_perms;
|
|
Dan Walsh |
a947da |
allow $1 gnome_home_type:lnk_file manage_lnk_file_perms;
|
|
Dan Walsh |
a947da |
userdom_search_user_home_dirs($1)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
########################################
|
|
Dan Walsh |
3eaa99 |
## <summary>
|
|
Dan Walsh |
3eaa99 |
## Send general signals to all gconf domains.
|
|
Chris PeBenito |
ab8f91 |
## </summary>
|
|
Chris PeBenito |
ab8f91 |
## <param name="domain">
|
|
Chris PeBenito |
ab8f91 |
## <summary>
|
|
Chris PeBenito |
ab8f91 |
## Domain allowed access.
|
|
Chris PeBenito |
ab8f91 |
## </summary>
|
|
Chris PeBenito |
ab8f91 |
## </param>
|
|
Chris PeBenito |
ab8f91 |
#
|
|
Dan Walsh |
3eaa99 |
interface(`gnome_signal_all',`
|
|
Chris PeBenito |
ab8f91 |
gen_require(`
|
|
Dan Walsh |
3eaa99 |
attribute gnomedomain;
|
|
Chris PeBenito |
ab8f91 |
')
|
|
Chris PeBenito |
ab8f91 |
|
|
Dan Walsh |
3eaa99 |
allow $1 gnomedomain:process signal;
|
|
Chris PeBenito |
ab8f91 |
')
|
|
Chris PeBenito |
ab8f91 |
|
|
Chris PeBenito |
ab8f91 |
########################################
|
|
Chris PeBenito |
ab8f91 |
## <summary>
|
|
Dan Walsh |
3eaa99 |
## Create objects in a Gnome cache home directory
|
|
Dan Walsh |
3eaa99 |
## with an automatic type transition to
|
|
Dan Walsh |
3eaa99 |
## a specified private type.
|
|
Dan Walsh |
3eaa99 |
## </summary>
|
|
Dan Walsh |
3eaa99 |
## <param name="domain">
|
|
Dan Walsh |
3eaa99 |
## <summary>
|
|
Dan Walsh |
3eaa99 |
## Domain allowed access.
|
|
Dan Walsh |
3eaa99 |
## </summary>
|
|
Dan Walsh |
3eaa99 |
## </param>
|
|
Dan Walsh |
3eaa99 |
## <param name="private_type">
|
|
Dan Walsh |
3eaa99 |
## <summary>
|
|
Dan Walsh |
3eaa99 |
## The type of the object to create.
|
|
Dan Walsh |
3eaa99 |
## </summary>
|
|
Dan Walsh |
3eaa99 |
## </param>
|
|
Dan Walsh |
3eaa99 |
## <param name="object_class">
|
|
Dan Walsh |
3eaa99 |
## <summary>
|
|
Dan Walsh |
3eaa99 |
## The class of the object to be created.
|
|
Dan Walsh |
3eaa99 |
## </summary>
|
|
Dan Walsh |
3eaa99 |
## </param>
|
|
Dan Walsh |
3eaa99 |
#
|
|
Dan Walsh |
3eaa99 |
interface(`gnome_cache_filetrans',`
|
|
Dan Walsh |
3eaa99 |
gen_require(`
|
|
Dan Walsh |
3eaa99 |
type cache_home_t;
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
filetrans_pattern($1, cache_home_t, $2, $3)
|
|
Dan Walsh |
3eaa99 |
userdom_search_user_home_dirs($1)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
########################################
|
|
Dan Walsh |
3eaa99 |
## <summary>
|
|
Dan Walsh |
3eaa99 |
## Read generic cache home files (.cache)
|
|
Dan Walsh |
3eaa99 |
## </summary>
|
|
Dan Walsh |
3eaa99 |
## <param name="domain">
|
|
Dan Walsh |
3eaa99 |
## <summary>
|
|
Dan Walsh |
3eaa99 |
## Domain allowed access.
|
|
Dan Walsh |
3eaa99 |
## </summary>
|
|
Dan Walsh |
3eaa99 |
## </param>
|
|
Dan Walsh |
3eaa99 |
#
|
|
Dan Walsh |
3eaa99 |
interface(`gnome_read_generic_cache_files',`
|
|
Dan Walsh |
3eaa99 |
gen_require(`
|
|
Dan Walsh |
3eaa99 |
type cache_home_t;
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
read_files_pattern($1, cache_home_t, cache_home_t)
|
|
Dan Walsh |
3eaa99 |
userdom_search_user_home_dirs($1)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
########################################
|
|
Dan Walsh |
3eaa99 |
## <summary>
|
|
Dan Walsh |
3eaa99 |
## Set attributes of cache home dir (.cache)
|
|
Dan Walsh |
3eaa99 |
## </summary>
|
|
Dan Walsh |
3eaa99 |
## <param name="domain">
|
|
Dan Walsh |
3eaa99 |
## <summary>
|
|
Dan Walsh |
3eaa99 |
## Domain allowed access.
|
|
Dan Walsh |
3eaa99 |
## </summary>
|
|
Dan Walsh |
3eaa99 |
## </param>
|
|
Dan Walsh |
3eaa99 |
#
|
|
Dan Walsh |
3eaa99 |
interface(`gnome_setattr_cache_home_dir',`
|
|
Dan Walsh |
3eaa99 |
gen_require(`
|
|
Dan Walsh |
3eaa99 |
type cache_home_t;
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
setattr_dirs_pattern($1, cache_home_t, cache_home_t)
|
|
Dan Walsh |
3eaa99 |
userdom_search_user_home_dirs($1)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
########################################
|
|
Dan Walsh |
3eaa99 |
## <summary>
|
|
Dan Walsh |
c71f02 |
## append to generic cache home files (.cache)
|
|
Dan Walsh |
c71f02 |
## </summary>
|
|
Dan Walsh |
c71f02 |
## <param name="domain">
|
|
Dan Walsh |
c71f02 |
## <summary>
|
|
Dan Walsh |
c71f02 |
## Domain allowed access.
|
|
Dan Walsh |
c71f02 |
## </summary>
|
|
Dan Walsh |
c71f02 |
## </param>
|
|
Dan Walsh |
c71f02 |
#
|
|
Dan Walsh |
c71f02 |
interface(`gnome_append_generic_cache_files',`
|
|
Dan Walsh |
c71f02 |
gen_require(`
|
|
Dan Walsh |
c71f02 |
type cache_home_t;
|
|
Dan Walsh |
c71f02 |
')
|
|
Dan Walsh |
c71f02 |
|
|
Dan Walsh |
c71f02 |
append_files_pattern($1, cache_home_t, cache_home_t)
|
|
Dan Walsh |
c71f02 |
userdom_search_user_home_dirs($1)
|
|
Dan Walsh |
c71f02 |
')
|
|
Dan Walsh |
c71f02 |
|
|
Dan Walsh |
c71f02 |
########################################
|
|
Dan Walsh |
c71f02 |
## <summary>
|
|
Dan Walsh |
3eaa99 |
## write to generic cache home files (.cache)
|
|
Dan Walsh |
3eaa99 |
## </summary>
|
|
Dan Walsh |
3eaa99 |
## <param name="domain">
|
|
Dan Walsh |
3eaa99 |
## <summary>
|
|
Dan Walsh |
3eaa99 |
## Domain allowed access.
|
|
Dan Walsh |
3eaa99 |
## </summary>
|
|
Dan Walsh |
3eaa99 |
## </param>
|
|
Dan Walsh |
3eaa99 |
#
|
|
Dan Walsh |
3eaa99 |
interface(`gnome_write_generic_cache_files',`
|
|
Dan Walsh |
3eaa99 |
gen_require(`
|
|
Dan Walsh |
3eaa99 |
type cache_home_t;
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
write_files_pattern($1, cache_home_t, cache_home_t)
|
|
Dan Walsh |
3eaa99 |
userdom_search_user_home_dirs($1)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
########################################
|
|
Dan Walsh |
3eaa99 |
## <summary>
|
|
Dan Walsh |
a947da |
## read gnome homedir content (.config)
|
|
Dan Walsh |
a947da |
## </summary>
|
|
Dan Walsh |
aa760a |
## <param name="domain">
|
|
Dan Walsh |
a947da |
## <summary>
|
|
Dan Walsh |
aa760a |
## Domain allowed access.
|
|
Dan Walsh |
a947da |
## </summary>
|
|
Dan Walsh |
a947da |
## </param>
|
|
Dan Walsh |
a947da |
#
|
|
Dan Walsh |
a947da |
template(`gnome_read_config',`
|
|
Dan Walsh |
a947da |
gen_require(`
|
|
Dan Walsh |
a947da |
attribute gnome_home_type;
|
|
Dan Walsh |
a947da |
')
|
|
Dan Walsh |
a947da |
|
|
Dan Walsh |
a947da |
list_dirs_pattern($1, gnome_home_type, gnome_home_type)
|
|
Dan Walsh |
a947da |
read_files_pattern($1, gnome_home_type, gnome_home_type)
|
|
Dan Walsh |
a947da |
read_lnk_files_pattern($1, gnome_home_type, gnome_home_type)
|
|
Dan Walsh |
a947da |
')
|
|
Dan Walsh |
a947da |
|
|
Dan Walsh |
a947da |
########################################
|
|
Dan Walsh |
a947da |
## <summary>
|
|
Dan Walsh |
3eaa99 |
## Create objects in a Gnome gconf home directory
|
|
Dan Walsh |
3eaa99 |
## with an automatic type transition to
|
|
Dan Walsh |
3eaa99 |
## a specified private type.
|
|
Dan Walsh |
3eaa99 |
## </summary>
|
|
Dan Walsh |
3eaa99 |
## <param name="domain">
|
|
Dan Walsh |
3eaa99 |
## <summary>
|
|
Dan Walsh |
3eaa99 |
## Domain allowed access.
|
|
Dan Walsh |
3eaa99 |
## </summary>
|
|
Dan Walsh |
3eaa99 |
## </param>
|
|
Dan Walsh |
3eaa99 |
## <param name="private_type">
|
|
Dan Walsh |
3eaa99 |
## <summary>
|
|
Dan Walsh |
3eaa99 |
## The type of the object to create.
|
|
Dan Walsh |
3eaa99 |
## </summary>
|
|
Dan Walsh |
3eaa99 |
## </param>
|
|
Dan Walsh |
3eaa99 |
## <param name="object_class">
|
|
Dan Walsh |
3eaa99 |
## <summary>
|
|
Dan Walsh |
3eaa99 |
## The class of the object to be created.
|
|
Dan Walsh |
3eaa99 |
## </summary>
|
|
Dan Walsh |
3eaa99 |
## </param>
|
|
Dan Walsh |
3eaa99 |
#
|
|
Dan Walsh |
3eaa99 |
interface(`gnome_data_filetrans',`
|
|
Dan Walsh |
3eaa99 |
gen_require(`
|
|
Dan Walsh |
3eaa99 |
type data_home_t;
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
filetrans_pattern($1, data_home_t, $2, $3)
|
|
Dan Walsh |
3eaa99 |
gnome_search_gconf($1)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
########################################
|
|
Dan Walsh |
3eaa99 |
## <summary>
|
|
Dan Walsh |
3eaa99 |
## Create gconf_home_t objects in the /root directory
|
|
Dan Walsh |
3eaa99 |
## </summary>
|
|
Dan Walsh |
3eaa99 |
## <param name="domain">
|
|
Dan Walsh |
3eaa99 |
## <summary>
|
|
Dan Walsh |
3eaa99 |
## Domain allowed access.
|
|
Dan Walsh |
3eaa99 |
## </summary>
|
|
Dan Walsh |
3eaa99 |
## </param>
|
|
Dan Walsh |
3eaa99 |
## <param name="object_class">
|
|
Dan Walsh |
3eaa99 |
## <summary>
|
|
Dan Walsh |
3eaa99 |
## The class of the object to be created.
|
|
Dan Walsh |
3eaa99 |
## </summary>
|
|
Dan Walsh |
3eaa99 |
## </param>
|
|
Dan Walsh |
3eaa99 |
#
|
|
Dan Walsh |
3eaa99 |
interface(`gnome_admin_home_gconf_filetrans',`
|
|
Dan Walsh |
3eaa99 |
gen_require(`
|
|
Dan Walsh |
3eaa99 |
type gconf_home_t;
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
userdom_admin_home_dir_filetrans($1, gconf_home_t, $2)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
########################################
|
|
Dan Walsh |
3eaa99 |
## <summary>
|
|
Dan Walsh |
3eaa99 |
## read gconf config files
|
|
Chris PeBenito |
ab8f91 |
## </summary>
|
|
Dan Walsh |
aa760a |
## <param name="domain">
|
|
Chris PeBenito |
ab8f91 |
## <summary>
|
|
Dan Walsh |
aa760a |
## Domain allowed access.
|
|
Dan Walsh |
3eaa99 |
## </summary>
|
|
Dan Walsh |
3eaa99 |
## </param>
|
|
Dan Walsh |
3eaa99 |
#
|
|
Miroslav Grepl |
d15b40 |
interface(`gnome_read_gconf_config',`
|
|
Dan Walsh |
3eaa99 |
gen_require(`
|
|
Dan Walsh |
3eaa99 |
type gconf_etc_t;
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
allow $1 gconf_etc_t:dir list_dir_perms;
|
|
Dan Walsh |
3eaa99 |
read_files_pattern($1, gconf_etc_t, gconf_etc_t)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
#######################################
|
|
Dan Walsh |
3eaa99 |
## <summary>
|
|
Dan Walsh |
3eaa99 |
## Manage gconf config files
|
|
Dan Walsh |
3eaa99 |
## </summary>
|
|
Dan Walsh |
3eaa99 |
## <param name="domain">
|
|
Dan Walsh |
3eaa99 |
## <summary>
|
|
Dan Walsh |
3eaa99 |
## Domain allowed access.
|
|
Dan Walsh |
3eaa99 |
## </summary>
|
|
Dan Walsh |
3eaa99 |
## </param>
|
|
Dan Walsh |
3eaa99 |
#
|
|
Dan Walsh |
3eaa99 |
interface(`gnome_manage_gconf_config',`
|
|
Dan Walsh |
3eaa99 |
gen_require(`
|
|
Dan Walsh |
3eaa99 |
type gconf_etc_t;
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
allow $1 gconf_etc_t:dir list_dir_perms;
|
|
Dan Walsh |
3eaa99 |
manage_files_pattern($1, gconf_etc_t, gconf_etc_t)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
########################################
|
|
Dan Walsh |
3eaa99 |
## <summary>
|
|
Dan Walsh |
3eaa99 |
## Execute gconf programs in
|
|
Dan Walsh |
3eaa99 |
## in the caller domain.
|
|
Dan Walsh |
3eaa99 |
## </summary>
|
|
Dan Walsh |
3eaa99 |
## <param name="domain">
|
|
Dan Walsh |
3eaa99 |
## <summary>
|
|
Chris PeBenito |
ab8f91 |
## Domain allowed access.
|
|
Chris PeBenito |
ab8f91 |
## </summary>
|
|
Chris PeBenito |
ab8f91 |
## </param>
|
|
Chris PeBenito |
ab8f91 |
#
|
|
Dan Walsh |
3eaa99 |
interface(`gnome_exec_gconf',`
|
|
Dan Walsh |
3eaa99 |
gen_require(`
|
|
Dan Walsh |
3eaa99 |
type gconfd_exec_t;
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
can_exec($1, gconfd_exec_t)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
########################################
|
|
Dan Walsh |
3eaa99 |
## <summary>
|
|
Dan Walsh |
3eaa99 |
## Read gconf home files
|
|
Dan Walsh |
3eaa99 |
## </summary>
|
|
Dan Walsh |
3eaa99 |
## <param name="domain">
|
|
Dan Walsh |
3eaa99 |
## <summary>
|
|
Dan Walsh |
3eaa99 |
## Domain allowed access.
|
|
Dan Walsh |
3eaa99 |
## </summary>
|
|
Dan Walsh |
3eaa99 |
## </param>
|
|
Dan Walsh |
3eaa99 |
#
|
|
Dan Walsh |
3eaa99 |
interface(`gnome_read_gconf_home_files',`
|
|
Dan Walsh |
3eaa99 |
gen_require(`
|
|
Dan Walsh |
3eaa99 |
type gconf_home_t;
|
|
Dan Walsh |
3eaa99 |
type data_home_t;
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
allow $1 gconf_home_t:dir list_dir_perms;
|
|
Dan Walsh |
3eaa99 |
allow $1 data_home_t:dir list_dir_perms;
|
|
Dan Walsh |
3eaa99 |
read_files_pattern($1, gconf_home_t, gconf_home_t)
|
|
Dan Walsh |
3eaa99 |
read_files_pattern($1, data_home_t, data_home_t)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
########################################
|
|
Dan Walsh |
3eaa99 |
## <summary>
|
|
Dan Walsh |
3eaa99 |
## search gconf homedir (.local)
|
|
Dan Walsh |
3eaa99 |
## </summary>
|
|
Dan Walsh |
aa760a |
## <param name="domain">
|
|
Dan Walsh |
3eaa99 |
## <summary>
|
|
Dan Walsh |
aa760a |
## Domain allowed access.
|
|
Dan Walsh |
3eaa99 |
## </summary>
|
|
Dan Walsh |
3eaa99 |
## </param>
|
|
Dan Walsh |
3eaa99 |
#
|
|
Dan Walsh |
3eaa99 |
interface(`gnome_search_gconf',`
|
|
Dan Walsh |
3eaa99 |
gen_require(`
|
|
Dan Walsh |
3eaa99 |
type gconf_home_t;
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
allow $1 gconf_home_t:dir search_dir_perms;
|
|
Dan Walsh |
3eaa99 |
userdom_search_user_home_dirs($1)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
########################################
|
|
Dan Walsh |
3eaa99 |
## <summary>
|
|
Dan Walsh |
4251ae |
## Set attributes of Gnome config dirs.
|
|
Dan Walsh |
4251ae |
## </summary>
|
|
Dan Walsh |
4251ae |
## <param name="domain">
|
|
Dan Walsh |
4251ae |
## <summary>
|
|
Dan Walsh |
4251ae |
## Domain allowed access.
|
|
Dan Walsh |
4251ae |
## </summary>
|
|
Dan Walsh |
4251ae |
## </param>
|
|
Dan Walsh |
4251ae |
#
|
|
Dan Walsh |
4251ae |
interface(`gnome_setattr_config_dirs',`
|
|
Dan Walsh |
4251ae |
gen_require(`
|
|
Dan Walsh |
4251ae |
type gnome_home_t;
|
|
Dan Walsh |
4251ae |
')
|
|
Dan Walsh |
4251ae |
|
|
Dan Walsh |
4251ae |
setattr_dirs_pattern($1, gnome_home_t, gnome_home_t)
|
|
Dan Walsh |
4251ae |
files_search_home($1)
|
|
Dan Walsh |
4251ae |
')
|
|
Dan Walsh |
4251ae |
|
|
Dan Walsh |
4251ae |
########################################
|
|
Dan Walsh |
4251ae |
## <summary>
|
|
Dan Walsh |
3eaa99 |
## Append gconf home files
|
|
Dan Walsh |
3eaa99 |
## </summary>
|
|
Dan Walsh |
3eaa99 |
## <param name="domain">
|
|
Dan Walsh |
3eaa99 |
## <summary>
|
|
Dan Walsh |
3eaa99 |
## Domain allowed access.
|
|
Dan Walsh |
3eaa99 |
## </summary>
|
|
Dan Walsh |
3eaa99 |
## </param>
|
|
Dan Walsh |
3eaa99 |
#
|
|
Dan Walsh |
3eaa99 |
interface(`gnome_append_gconf_home_files',`
|
|
Dan Walsh |
3eaa99 |
gen_require(`
|
|
Dan Walsh |
3eaa99 |
type gconf_home_t;
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
append_files_pattern($1, gconf_home_t, gconf_home_t)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
########################################
|
|
Dan Walsh |
3eaa99 |
## <summary>
|
|
Dan Walsh |
3eaa99 |
## manage gconf home files
|
|
Dan Walsh |
3eaa99 |
## </summary>
|
|
Dan Walsh |
3eaa99 |
## <param name="domain">
|
|
Dan Walsh |
3eaa99 |
## <summary>
|
|
Dan Walsh |
3eaa99 |
## Domain allowed access.
|
|
Dan Walsh |
3eaa99 |
## </summary>
|
|
Dan Walsh |
3eaa99 |
## </param>
|
|
Dan Walsh |
3eaa99 |
#
|
|
Dan Walsh |
3eaa99 |
interface(`gnome_manage_gconf_home_files',`
|
|
Dan Walsh |
3eaa99 |
gen_require(`
|
|
Dan Walsh |
3eaa99 |
type gconf_home_t;
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
allow $1 gconf_home_t:dir list_dir_perms;
|
|
Dan Walsh |
3eaa99 |
manage_files_pattern($1, gconf_home_t, gconf_home_t)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
########################################
|
|
Dan Walsh |
3eaa99 |
## <summary>
|
|
Dan Walsh |
3eaa99 |
## Connect to gnome over an unix stream socket.
|
|
Dan Walsh |
3eaa99 |
## </summary>
|
|
Dan Walsh |
3eaa99 |
## <param name="domain">
|
|
Dan Walsh |
3eaa99 |
## <summary>
|
|
Dan Walsh |
3eaa99 |
## Domain allowed access.
|
|
Dan Walsh |
3eaa99 |
## </summary>
|
|
Dan Walsh |
3eaa99 |
## </param>
|
|
Dan Walsh |
3eaa99 |
## <param name="user_domain">
|
|
Dan Walsh |
3eaa99 |
## <summary>
|
|
Dan Walsh |
3eaa99 |
## The type of the user domain.
|
|
Dan Walsh |
3eaa99 |
## </summary>
|
|
Dan Walsh |
3eaa99 |
## </param>
|
|
Dan Walsh |
3eaa99 |
#
|
|
Dan Walsh |
3eaa99 |
interface(`gnome_stream_connect',`
|
|
Dan Walsh |
3eaa99 |
gen_require(`
|
|
Dan Walsh |
3eaa99 |
attribute gnome_home_type;
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
# Connect to pulseaudit server
|
|
Dan Walsh |
3eaa99 |
stream_connect_pattern($1, gnome_home_type, gnome_home_type, $2)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
########################################
|
|
Dan Walsh |
3eaa99 |
## <summary>
|
|
Dan Walsh |
2d4a79 |
## list gnome homedir content (.config)
|
|
Dan Walsh |
3eaa99 |
## </summary>
|
|
Dan Walsh |
aa760a |
## <param name="domain">
|
|
Dan Walsh |
3eaa99 |
## <summary>
|
|
Dan Walsh |
aa760a |
## Domain allowed access.
|
|
Dan Walsh |
3eaa99 |
## </summary>
|
|
Dan Walsh |
3eaa99 |
## </param>
|
|
Dan Walsh |
3eaa99 |
#
|
|
Miroslav Grepl |
d15b40 |
interface(`gnome_list_home_config',`
|
|
Dan Walsh |
3eaa99 |
gen_require(`
|
|
Dan Walsh |
3eaa99 |
type config_home_t;
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
allow $1 config_home_t:dir list_dir_perms;
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
########################################
|
|
Dan Walsh |
3eaa99 |
## <summary>
|
|
Dan Walsh |
5ef740 |
## Set attributes of gnome homedir content (.config)
|
|
Dan Walsh |
5ef740 |
## </summary>
|
|
Dan Walsh |
5ef740 |
## <param name="domain">
|
|
Dan Walsh |
5ef740 |
## <summary>
|
|
Dan Walsh |
5ef740 |
## Domain allowed access.
|
|
Dan Walsh |
5ef740 |
## </summary>
|
|
Dan Walsh |
5ef740 |
## </param>
|
|
Dan Walsh |
5ef740 |
#
|
|
Dan Walsh |
5ef740 |
template(`gnome_setattr_home_config',`
|
|
Dan Walsh |
5ef740 |
gen_require(`
|
|
Dan Walsh |
5ef740 |
type config_home_t;
|
|
Dan Walsh |
5ef740 |
')
|
|
Dan Walsh |
5ef740 |
|
|
Dan Walsh |
5ef740 |
setattr_dirs_pattern($1, config_home_t, config_home_t)
|
|
Dan Walsh |
5ef740 |
userdom_search_user_home_dirs($1)
|
|
Dan Walsh |
5ef740 |
')
|
|
Dan Walsh |
5ef740 |
|
|
Dan Walsh |
5ef740 |
########################################
|
|
Dan Walsh |
5ef740 |
## <summary>
|
|
Dan Walsh |
2d4a79 |
## read gnome homedir content (.config)
|
|
Dan Walsh |
2d4a79 |
## </summary>
|
|
Dan Walsh |
aa760a |
## <param name="domain">
|
|
Dan Walsh |
2d4a79 |
## <summary>
|
|
Dan Walsh |
aa760a |
## Domain allowed access.
|
|
Dan Walsh |
2d4a79 |
## </summary>
|
|
Dan Walsh |
2d4a79 |
## </param>
|
|
Dan Walsh |
2d4a79 |
#
|
|
Miroslav Grepl |
d15b40 |
interface(`gnome_read_home_config',`
|
|
Dan Walsh |
2d4a79 |
gen_require(`
|
|
Dan Walsh |
2d4a79 |
type config_home_t;
|
|
Dan Walsh |
2d4a79 |
')
|
|
Dan Walsh |
2d4a79 |
|
|
Dan Walsh |
2d4a79 |
read_files_pattern($1, config_home_t, config_home_t)
|
|
Dan Walsh |
2d4a79 |
')
|
|
Dan Walsh |
2d4a79 |
|
|
Dan Walsh |
2d4a79 |
########################################
|
|
Dan Walsh |
2d4a79 |
## <summary>
|
|
Dan Walsh |
f5b49a |
## manage gnome homedir content (.config)
|
|
Dan Walsh |
f5b49a |
## </summary>
|
|
Dan Walsh |
aa760a |
## <param name="domain">
|
|
Dan Walsh |
f5b49a |
## <summary>
|
|
Dan Walsh |
aa760a |
## Domain allowed access.
|
|
Dan Walsh |
f5b49a |
## </summary>
|
|
Dan Walsh |
f5b49a |
## </param>
|
|
Dan Walsh |
f5b49a |
#
|
|
Dan Walsh |
f5b49a |
template(`gnome_manage_home_config',`
|
|
Dan Walsh |
f5b49a |
gen_require(`
|
|
Dan Walsh |
f5b49a |
type config_home_t;
|
|
Dan Walsh |
f5b49a |
')
|
|
Dan Walsh |
f5b49a |
|
|
Dan Walsh |
f5b49a |
manage_files_pattern($1, config_home_t, config_home_t)
|
|
Dan Walsh |
f5b49a |
')
|
|
Dan Walsh |
f5b49a |
|
|
Dan Walsh |
f5b49a |
########################################
|
|
Dan Walsh |
f5b49a |
## <summary>
|
|
Dan Walsh |
3eaa99 |
## Read/Write all inherited gnome home config
|
|
Dan Walsh |
3eaa99 |
## </summary>
|
|
Dan Walsh |
3eaa99 |
## <param name="domain">
|
|
Dan Walsh |
3eaa99 |
## <summary>
|
|
Dan Walsh |
3eaa99 |
## Domain allowed access.
|
|
Dan Walsh |
3eaa99 |
## </summary>
|
|
Dan Walsh |
3eaa99 |
## </param>
|
|
Dan Walsh |
3eaa99 |
#
|
|
Dan Walsh |
3eaa99 |
interface(`gnome_rw_inherited_config',`
|
|
Dan Walsh |
3eaa99 |
gen_require(`
|
|
Dan Walsh |
3eaa99 |
attribute gnome_home_type;
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
allow $1 gnome_home_type:file rw_inherited_file_perms;
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
########################################
|
|
Dan Walsh |
3eaa99 |
## <summary>
|
|
Dan Walsh |
3eaa99 |
## Send and receive messages from
|
|
Dan Walsh |
3eaa99 |
## gconf system service over dbus.
|
|
Dan Walsh |
3eaa99 |
## </summary>
|
|
Dan Walsh |
3eaa99 |
## <param name="domain">
|
|
Dan Walsh |
3eaa99 |
## <summary>
|
|
Dan Walsh |
3eaa99 |
## Domain allowed access.
|
|
Dan Walsh |
3eaa99 |
## </summary>
|
|
Dan Walsh |
3eaa99 |
## </param>
|
|
Dan Walsh |
3eaa99 |
#
|
|
Dan Walsh |
3eaa99 |
interface(`gnome_dbus_chat_gconfdefault',`
|
|
Dan Walsh |
3eaa99 |
gen_require(`
|
|
Dan Walsh |
3eaa99 |
type gconfdefaultsm_t;
|
|
Dan Walsh |
3eaa99 |
class dbus send_msg;
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
allow $1 gconfdefaultsm_t:dbus send_msg;
|
|
Dan Walsh |
3eaa99 |
allow gconfdefaultsm_t $1:dbus send_msg;
|
|
Dan Walsh |
3eaa99 |
')
|