]> git.ipfire.org Git - people/stevee/selinux-policy.git/blob - policy/modules/services/tgtd.if
Allow munin services plugins to use NSCD services
[people/stevee/selinux-policy.git] / policy / modules / services / tgtd.if
1 ## <summary>Linux Target Framework Daemon.</summary>
2 ## <desc>
3 ## <p>
4 ## Linux target framework (tgt) aims to simplify various
5 ## SCSI target driver (iSCSI, Fibre Channel, SRP, etc) creation
6 ## and maintenance. Our key goals are the clean integration into
7 ## the scsi-mid layer and implementing a great portion of tgt
8 ## in user space.
9 ## </p>
10 ## </desc>
11
12 #####################################
13 ## <summary>
14 ## Allow read and write access to tgtd semaphores.
15 ## </summary>
16 ## <param name="domain">
17 ## <summary>
18 ## Domain allowed access.
19 ## </summary>
20 ## </param>
21 #
22 interface(`tgtd_rw_semaphores',`
23 gen_require(`
24 type tgtd_t;
25 ')
26
27 allow $1 tgtd_t:sem rw_sem_perms;
28 ')
29
30 ######################################
31 ## <summary>
32 ## Manage tgtd sempaphores.
33 ## </summary>
34 ## <param name="domain">
35 ## <summary>
36 ## Domain allowed access.
37 ## </summary>
38 ## </param>
39 #
40 interface(`tgtd_manage_semaphores',`
41 gen_require(`
42 type tgtd_t;
43 ')
44
45 allow $1 tgtd_t:sem create_sem_perms;
46 ')