aboutsummaryrefslogtreecommitdiff
blob: 4a3ba0225e5968bed5d337f9be9726bb18a42f99 (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
## <summary>Shibboleth authentication deamon</summary>

########################################
## <summary>
##	Allow your application domain to access
##	config files from shibboleth
## </summary>
## <param name="domain">
##	<summary>
##	The domain which should be enabled.
##	</summary>
## </param>
#
interface(`shibboleth_read_config',`
	gen_require(`
		type shibboleth_etc_t;
	')

	read_files_pattern($1, shibboleth_etc_t, shibboleth_etc_t)
')

########################################
## <summary>
##	Allow the specified domain to connect to shibboleth with a unix socket.
## </summary>
## <param name="domain">
##	<summary>
##	Domain allowed access.
##	</summary>
## </param>
#
interface(`shibboleth_stream_connect',`
	gen_require(`
		type shibboleth_t;
		type shibboleth_var_run_t;
	')

	stream_connect_pattern($1, shibboleth_var_run_t, shibboleth_var_run_t, shibboleth_t)
	files_search_pids($1)
')