1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
## <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;
')
domtrans_pattern($1, ccs_exec_t, ccs_t)
')
########################################
## <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)
stream_connect_pattern($1, ccs_var_run_t, ccs_var_run_t, ccs_t)
')
########################################
## <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;
')
read_files_pattern($1, cluster_conf_t, cluster_conf_t)
')
########################################
## <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;
')
manage_dirs_pattern($1, cluster_conf_t, cluster_conf_t)
manage_files_pattern($1, cluster_conf_t, cluster_conf_t)
')
|