summaryrefslogtreecommitdiffstats
path: root/config/chroot_local-hooks/44-remove-unused-AppArmor-profiles
blob: dd7688e1bd642dae27fd024f5b8b4fd96a8316e7 (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
#!/bin/sh

set -e

echo "Deleting unused AppArmor profiles"

(
   cd /etc/apparmor.d
   rm \
       apache2.d/phpsysinfo     \
       sbin.klogd               \
       sbin.syslogd             \
       sbin.syslog-ng           \
       usr.bin.chromium-browser \
       usr.lib.dovecot.*        \
       usr.sbin.dnsmasq         \
       usr.sbin.dovecot         \
       usr.sbin.identd          \
       usr.sbin.mdnsd           \
       usr.sbin.nmbd            \
       usr.sbin.ntpd            \
       usr.sbin.nscd            \
       usr.sbin.smb*
)