summaryrefslogtreecommitdiff
path: root/policy/modules/services/slrnpull.if
blob: 66a80b32d59b9e30187e4def16d1ae29b0a93819 (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
## <summary>Service for downloading news feeds the slrn newsreader.</summary>

########################################
## <summary>
##	Allow the domain to search slrnpull spools.
## </summary>
## <param name="pty_type">
##	<summary>
##	domain allowed access
##	</summary>
## </param>
#
interface(`slrnpull_search_spool',`
	gen_require(`
		type slrnpull_spool_t;
	')

	files_search_spool($1)
	allow $1 slrnpull_spool_t:dir search_dir_perms;
')

########################################
## <summary>
##	Allow the domain to create, read,
##	write, and delete slrnpull spools.
## </summary>
## <param name="pty_type">
##	<summary>
##	domain allowed access
##	</summary>
## </param>
#
interface(`slrnpull_manage_spool',`
	gen_require(`
		type slrnpull_spool_t;
	')

	files_search_spool($1)
	manage_dirs_pattern($1, slrnpull_spool_t, slrnpull_spool_t)
	manage_files_pattern($1, slrnpull_spool_t, slrnpull_spool_t)
	manage_lnk_files_pattern($1, slrnpull_spool_t, slrnpull_spool_t)
')