File: cachefilesd.if

package info (click to toggle)
cachefilesd 0.10.5-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 180 kB
  • ctags: 116
  • sloc: ansic: 1,013; sh: 233; makefile: 70
file content (41 lines) | stat: -rw-r--r-- 1,228 bytes parent folder | download | duplicates (5)
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
###############################################################################
#
# Copyright (C) 2006 Red Hat, Inc. All Rights Reserved.
# Written by David Howells (dhowells@redhat.com)
#            Karl MacMillan (kmacmill@redhat.com)
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version
# 2 of the License, or (at your option) any later version.
#
###############################################################################

#
# Define the policy interface for the CacheFiles userspace management daemon.
#

## <summary>policy for cachefilesd</summary>

########################################
## <summary>
##	Execute a domain transition to run cachefilesd.
## </summary>
## <param name="domain">
## <summary>
##	Domain allowed to transition.
## </summary>
## </param>
#
interface(`cachefilesd_domtrans',`
	gen_require(`
		type cachefilesd_t, cachefilesd_exec_t;
	')

	domain_auto_trans($1,cachefilesd_exec_t,cachefilesd_t)

	allow $1 cachefilesd_t:fd use;
	allow cachefilesd_t $1:fd use;
	allow cachefilesd_t $1:fifo_file rw_file_perms;
	allow cachefilesd_t $1:process sigchld;
')