aboutsummaryrefslogtreecommitdiff
path: root/straper/db/public/apparmor/apparmor.d/abstractions/apache2-common
blob: 09826352de68fd05622f1e1d9fe49099e61b317b (plain) (blame)
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
# vim:syntax=apparmor

# This file contains basic permissions for Apache and every vHost

  abi <abi/4.0>,

  include <abstractions/nameservice>

  # Allow other processes to read our /proc entries
  ptrace (readby),
  # Allow other processes to trace us by default
  ptrace (tracedby),
  # Allow unconfined processes to send us signals by default
  signal (receive) peer=unconfined,
  # Allow apache to send us signals by default
  signal (receive) peer=apache2,
  # Allow other hats to signal by default
  signal peer=apache2//*,
  # Allow us to signal ourselves
  signal peer=@{profile_name},

  # Apache
  network inet stream,
  network inet6 stream,
  # apache manual, error pages and icons
  /usr/share/apache2/** r,

  # changehat itself
  @{PROC}/@{pid}/attr/{apparmor/,}current                        rw,

  # htaccess files - for what ever it is worth
  /**/.htaccess            r,

  /dev/urandom            r,

  # sasl-auth
  @{run}/saslauthd/mux rw,

  # OCSP stapling
  @{run}/lock/apache2/stapling-cache* rw,

  # Include additions to the abstraction
  include if exists <abstractions/apache2-common.d>