File: compile-policy

package info (click to toggle)
apparmor 4.1.6-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 29,884 kB
  • sloc: ansic: 24,945; python: 24,914; cpp: 9,140; sh: 8,175; yacc: 2,061; makefile: 1,908; lex: 1,215; pascal: 1,147; perl: 1,033; ruby: 365; lisp: 282; exp: 250; java: 212; xml: 159
file content (47 lines) | stat: -rw-r--r-- 1,404 bytes parent folder | download
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
#!/bin/sh

set -e
set -u

PROFILES_NAMES="guestfs-tools \
                lsb_release \
                nvidia_modprobe \
                system_tor \
                usr.bin.evince \
                usr.bin.freshclam \
                usr.bin.man \
                usr.bin.msmtp \
                usr.bin.onioncircuits \
                usr.bin.papers \
                usr.bin.passt \
                usr.bin.pasta \
                usr.bin.pidgin \
                usr.bin.tcpdump \
                usr.bin.totem \
                usr.bin.totem-previewers \
                usr.lib.libvirt.virt-aa-helper \
                usr.libexec.geoclue \
                usr.libexec.ibus-engine-hangul \
                usr.libexec.ibus-setup-hangul \
                usr.sbin.apt-cacher-ng \
                usr.sbin.clamd \
                usr.sbin.chronyd \
                usr.sbin.cupsd \
                usr.sbin.cups-browsed \
                usr.sbin.haveged \
                usr.sbin.libvirtd \
                usr.sbin.mariadbd \
                usr.sbin.named \
                usr.sbin.unbound"

for profile_name in $PROFILES_NAMES; do
    echo "Testing $profile_name"
    /sbin/apparmor_parser \
        --add \
        --skip-cache \
        --skip-kernel-load \
        --verbose \
        --warn=rule-downgraded \
        --warn=rule-not-enforced \
        "/etc/apparmor.d/$profile_name"
done