summaryrefslogtreecommitdiffstats
path: root/debian/apparmor-profile
blob: fadfa6c7d041a32f35ac2b52ffa1a75dff39365b (plain)
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#include <tunables/global>

/usr/sbin/sssd {
  #include <abstractions/base>
  #include <abstractions/kerberosclient>
  #include <abstractions/nameservice>
  #include <abstractions/user-tmp>

  capability chown,
  capability dac_override,
  capability dac_read_search,
  capability setgid,
  capability setuid,
  capability sys_admin,
  capability sys_nice,
  capability sys_resource,

  @{PROC} r,
  @{PROC}/[0-9]*/net/psched r,
  @{PROC}/[0-9]*/status r,

  /etc/krb5.keytab k,
  /etc/ldap/ldap.conf r,
  /etc/libnl-3/classid r,
  /etc/localtime r,
  /etc/shells r,
  /etc/sssd/sssd.conf r,
  /etc/sssd/conf.d/ r,
  /etc/sssd/conf.d/** r,
  /etc/gss/mech.d/ r,
  /etc/gss/mech.d/** r,
  /usr/share/sssd/cfg_rules.ini r,

  /usr/lib/@{multiarch}/ldb/modules/ldb/* m,
  /usr/lib/@{multiarch}/samba/ldb/* m,
  /usr/lib/@{multiarch}/sssd/* rix,
  /usr/libexec/sssd/* rmix,
  /usr/sbin/sssd rmix,

  /tmp/{,.}krb5cc_* rwk,

  /var/lib/sss/* rw,
  /var/lib/sss/db/* rwk,
  /var/lib/sss/gpo_cache/* rw,
  /var/lib/sss/mc/* rw,
  /var/lib/sss/pipes/* rw,
  /var/lib/sss/pipes/private/* rw,
  /var/lib/sss/pubconf/* rw,
  /var/lib/sss/pubconf/krb5.include.d/ r,
  /var/lib/sss/pubconf/krb5.include.d/* rw,
  /var/log/sssd/* rw,
  /var/tmp/host_* rw,

  /{,var/}run/sssd.pid rw,
  /{,var/}run/systemd/notify w,

  # Site-specific additions and overrides. See local/README for details.
  #include <local/usr.sbin.sssd>
}