aboutsummaryrefslogtreecommitdiff
blob: c0a66a412f0dd6999708ca867c243fa54f8e0539 (plain)
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
76
77
78
79
## <summary>clogd - Clustered Mirror Log Server</summary>

######################################
## <summary>
##	Execute a domain transition to run clogd.
## </summary>
## <param name="domain">
## <summary>
##	Domain allowed to transition.
## </summary>
## </param>
#
interface(`clogd_domtrans',`
	gen_require(`
		type clogd_t, clogd_exec_t;
	')

	corecmd_search_bin($1)
	domtrans_pattern($1, clogd_exec_t, clogd_t)
')

#####################################
## <summary>
##	Connect to clogd over a unix domain
##	stream socket.
## </summary>
## <param name="domain">
##	<summary>
##	Domain allowed access.
##	</summary>
## </param>
#
interface(`clogd_stream_connect',`
	gen_require(`
		type clogd_t, clogd_var_run_t;
	')

	files_search_pids($1)
	stream_connect_pattern($1, clogd_var_run_t, clogd_var_run_t, clogd_t)
')

#####################################
## <summary>
##	Allow read and write access to clogd semaphores.
## </summary>
## <param name="domain">
##	<summary>
##	Domain allowed access.
##	</summary>
## </param>
#
interface(`clogd_rw_semaphores',`
	gen_require(`
		type clogd_t;
	')

	allow $1 clogd_t:sem rw_sem_perms;
')

########################################
## <summary>
##	Read and write to group shared memory.
## </summary>
## <param name="domain">
##	<summary>
##	Domain allowed access.
##	</summary>
## </param>
#
interface(`clogd_rw_shm',`
	gen_require(`
		type clogd_t, clogd_tmpfs_t;
	')

	allow $1 clogd_t:shm rw_shm_perms;
	allow $1 clogd_tmpfs_t:dir list_dir_perms;
	rw_files_pattern($1, clogd_tmpfs_t, clogd_tmpfs_t)
	fs_search_tmpfs($1)
')