File: example.te

package info (click to toggle)
refpolicy 2%3A0.2.20100524-7%2Bsqueeze1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 10,516 kB
  • ctags: 500
  • sloc: xml: 81,621; python: 2,357; makefile: 495; ansic: 290; perl: 255; sh: 201; sed: 15; awk: 7
file content (30 lines) | stat: -rw-r--r-- 542 bytes parent folder | download | duplicates (10)
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

policy_module(myapp,1.0.0)

########################################
#
# Declarations
#

type myapp_t;
type myapp_exec_t;
domain_type(myapp_t)
domain_entry_file(myapp_t, myapp_exec_t)

type myapp_log_t;
logging_log_file(myapp_log_t)

type myapp_tmp_t;
files_tmp_file(myapp_tmp_t)

########################################
#
# Myapp local policy
#

allow myapp_t myapp_log_t:file ra_file_perms;

allow myapp_t myapp_tmp_t:file manage_file_perms;
files_tmp_filetrans(myapp_t,myapp_tmp_t,file)

# arch-tag: 5a574a9f-92ea-4cc2-becb-9715b6107d1b