aboutsummaryrefslogtreecommitdiff
blob: c1feba4f5472a83387ae119a065dce0f3c2f7963 (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
## <summary>ucspitcp policy</summary>
## <desc>
##	<p>
##	Policy for DJB's ucspi-tcpd
##	</p>
## </desc>

########################################
## <summary>
##	Define a specified domain as a ucspitcp service.
## </summary>
## <param name="domain">
##	<summary>
##	Domain allowed access.
##	</summary>
## </param>
## <param name="entrypoint">
##	<summary>
##	The type associated with the process program.
##	</summary>
## </param>
#
interface(`ucspitcp_service_domain', `
	gen_require(`
		type ucspitcp_t;
		role system_r;
	')

	domain_type($1)
	domain_entry_file($1, $2)

	role system_r types $1;

	domain_auto_trans(ucspitcp_t, $2, $1)
	allow $1 ucspitcp_t:fd use;
	allow $1 ucspitcp_t:process sigchld;
	allow $1 ucspitcp_t:tcp_socket rw_stream_socket_perms;
')