File: APPARMOR

package info (click to toggle)
cruft-ng 0.9.77
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 15,836 kB
  • sloc: cpp: 1,748; sh: 816; python: 233; makefile: 97; ansic: 82; perl: 75
file content (26 lines) | stat: -rwxr-xr-x 939 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
#!/bin/sh
set -e

test -d "$CRUFT_ROOT/etc/apparmor.d" || exit 0

test -d "$CRUFT_ROOT/etc/apparmor.d/local" && echo /etc/apparmor.d/local

find "$CRUFT_ROOT/etc/apparmor.d/" -maxdepth 1 -type f -printf "%f\n" | while read -r file
do
	if [ -e "$CRUFT_ROOT/etc/apparmor.d/cache/$file" ]; then echo "/etc/apparmor.d/cache/$file"; fi
	if [ -e "$CRUFT_ROOT/etc/apparmor.d/disable/$file" ]; then echo "/etc/apparmor.d/disable/$file"; fi
	if [ -e "$CRUFT_ROOT/etc/apparmor.d/local/$file" ]; then echo "/etc/apparmor.d/local/$file"; fi
done


test -d "$CRUFT_ROOT/etc/apparmor.d/abstractions" || exit 0

test -d "$CRUFT_ROOT/etc/apparmor.d/local/abstractions" && echo /etc/apparmor.d/local/abstractions

find "$CRUFT_ROOT/etc/apparmor.d/abstractions" -maxdepth 1 -type f -printf "%f\n" |
while read -r file
do
	if [ -e "$CRUFT_ROOT/etc/apparmor.d/local/abstractions/$file" ]; then echo "/etc/apparmor.d/local/abstractions/$file"; fi
done

exit 0