~ubuntu-branches/ubuntu/natty/refpolicy-ubuntu/natty

« back to all changes in this revision

Viewing changes to policy/modules/apps/gitosis.te

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook
  • Date: 2010-04-22 17:10:43 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20100422171043-khrw2m21gser7icb
Tags: 0.2.20091117-0ubuntu1
* New upstream release, converted to source format 3.
* Updated Ubuntu-specific patches thanks to Steve Lawrence (LP: #568744).
* Extracted Makefile change to debian/patches/bashisms.patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
policy_module(gitosis, 1.0.0)
 
3
 
 
4
########################################
 
5
#
 
6
# Declarations
 
7
#
 
8
 
 
9
type gitosis_t;
 
10
type gitosis_exec_t;
 
11
application_domain(gitosis_t, gitosis_exec_t)
 
12
role system_r types gitosis_t;
 
13
 
 
14
type gitosis_var_lib_t;
 
15
files_type(gitosis_var_lib_t)
 
16
 
 
17
########################################
 
18
#
 
19
# gitosis local policy
 
20
#
 
21
 
 
22
allow gitosis_t self:fifo_file rw_fifo_file_perms;
 
23
 
 
24
exec_files_pattern(gitosis_t, gitosis_var_lib_t, gitosis_var_lib_t)
 
25
manage_files_pattern(gitosis_t, gitosis_var_lib_t, gitosis_var_lib_t)
 
26
manage_lnk_files_pattern(gitosis_t, gitosis_var_lib_t, gitosis_var_lib_t)
 
27
manage_dirs_pattern(gitosis_t, gitosis_var_lib_t, gitosis_var_lib_t)
 
28
 
 
29
corecmd_exec_bin(gitosis_t) 
 
30
corecmd_exec_shell(gitosis_t)
 
31
 
 
32
kernel_read_system_state(gitosis_t)
 
33
 
 
34
files_read_usr_files(gitosis_t)
 
35
files_search_var_lib(gitosis_t)
 
36
 
 
37
miscfiles_read_localization(gitosis_t)