File: pythonsupport.te

package info (click to toggle)
refpolicy 2%3A2.20110726-12
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 18,744 kB
  • sloc: xml: 89,354; python: 2,357; makefile: 498; ansic: 290; perl: 238; sh: 217; sed: 15; awk: 7
file content (41 lines) | stat: -rw-r--r-- 979 bytes parent folder | download
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
policy_module(pythonsupport,0.0.1)

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

type pythoncompile_t;
type pythoncompile_exec_t;
domain_type(pythoncompile_t)
domain_entry_file(pythoncompile_t, pythoncompile_exec_t)

type python_compiled_t;
files_type(python_compiled_t)

########################################
#
# python-support local policy
#

kernel_read_system_state(pythoncompile_t)
kernel_read_kernel_sysctls(pythoncompile_t)

corecmd_exec_bin(pythoncompile_t)


files_read_etc_files(pythoncompile_t)
files_read_usr_files(pythoncompile_t)

libs_use_ld_so(pythoncompile_t)
libs_use_shared_libs(pythoncompile_t)


miscfiles_read_localization(pythoncompile_t)


# create compiled python modules
allow pythoncompile_t python_compiled_t:dir manage_dir_perms;
allow pythoncompile_t python_compiled_t:file manage_file_perms;
allow pythoncompile_t python_compiled_t:lnk_file manage_lnk_file_perms;
files_var_lib_filetrans(pythoncompile_t, python_compiled_t, dir)