selinux-policy/policy/modules/services/ccs.if
2006-11-16 20:56:24 +00:00

82 lines
1.6 KiB
Plaintext

## <summary>Cluster Configuration System</summary>
########################################
## <summary>
## Execute a domain transition to run ccs.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed to transition.
## </summary>
## </param>
#
interface(`ccs_domtrans',`
gen_require(`
type ccs_t, ccs_exec_t;
')
domain_auto_trans($1,ccs_exec_t,ccs_t)
allow ccs_t $1:fd use;
allow ccs_t $1:fifo_file rw_file_perms;
allow ccs_t $1:process sigchld;
')
########################################
## <summary>
## Connect to ccs over an unix stream socket.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`ccs_stream_connect',`
gen_require(`
type ccs_t, ccs_var_run_t;
')
files_search_pids($1)
allow $1 ccs_var_run_t:dir list_dir_perms;
allow $1 ccs_var_run_t:sock_file write;
allow $1 ccs_t:unix_stream_socket connectto;
')
########################################
## <summary>
## Read cluster configuration files.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`ccs_read_config',`
gen_require(`
type cluster_conf_t;
')
allow $1 cluster_conf_t:dir search_dir_perms;
allow $1 cluster_conf_t:file { getattr read };
')
########################################
## <summary>
## Manage cluster configuration files.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`ccs_manage_config',`
gen_require(`
type cluster_conf_t;
')
allow $1 cluster_conf_t:dir manage_dir_perms;
allow $1 cluster_conf_t:file manage_file_perms;
')