~ubuntu-branches/ubuntu/maverick/refpolicy-ubuntu/maverick

« back to all changes in this revision

Viewing changes to policy/modules/services/nslcd.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(nslcd, 1.0.0)
 
3
 
 
4
########################################
 
5
#
 
6
# Declarations
 
7
#
 
8
 
 
9
type nslcd_t;
 
10
type nslcd_exec_t;
 
11
init_daemon_domain(nslcd_t, nslcd_exec_t)
 
12
 
 
13
type nslcd_initrc_exec_t;
 
14
init_script_file(nslcd_initrc_exec_t)
 
15
 
 
16
type nslcd_var_run_t;
 
17
files_pid_file(nslcd_var_run_t)
 
18
 
 
19
type nslcd_conf_t;
 
20
files_type(nslcd_conf_t)
 
21
 
 
22
########################################
 
23
#
 
24
# nslcd local policy
 
25
#
 
26
 
 
27
allow nslcd_t self:capability { setgid setuid dac_override };
 
28
allow nslcd_t self:process signal;
 
29
allow nslcd_t self:unix_stream_socket create_stream_socket_perms;
 
30
 
 
31
allow nslcd_t nslcd_conf_t:file read_file_perms;
 
32
 
 
33
manage_dirs_pattern(nslcd_t, nslcd_var_run_t, nslcd_var_run_t)
 
34
manage_files_pattern(nslcd_t, nslcd_var_run_t, nslcd_var_run_t)
 
35
manage_sock_files_pattern(nslcd_t, nslcd_var_run_t, nslcd_var_run_t)
 
36
files_pid_filetrans(nslcd_t, nslcd_var_run_t, { file dir })
 
37
 
 
38
files_read_etc_files(nslcd_t)
 
39
 
 
40
auth_use_nsswitch(nslcd_t)
 
41
 
 
42
logging_send_syslog_msg(nslcd_t)
 
43
 
 
44
miscfiles_read_localization(nslcd_t)