mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-14 23:43:56 +01:00
build: initial build support for full system policy.
This commit is contained in:
parent
807bf7f1c8
commit
dc8134589d
14
configure
vendored
14
configure
vendored
@ -158,7 +158,19 @@ complain() {
|
||||
# Set AppArmor for full system policy
|
||||
# See https://gitlab.com/apparmor/apparmor/-/wikis/FullSystemPolicy
|
||||
full() {
|
||||
cp -a apparmor.d/groups/_full/* "$ROOT/apparmor.d/"
|
||||
cp -a apparmor.d/groups/_full/init "$ROOT/apparmor.d/"
|
||||
cp -a apparmor.d/groups/_full/systemd "$ROOT/apparmor.d/"
|
||||
case "$DISTRIBUTION" in
|
||||
arch|endeavouros|cachyos|manjarolinux)
|
||||
cp -r root/usr/lib/initcpio root/usr/lib/systemd/ "$ROOT/root/"
|
||||
;;
|
||||
|
||||
debian|ubuntu|whonix)
|
||||
cp -r root/etc/initramfs-tools "$ROOT/root/"
|
||||
;;
|
||||
|
||||
*) _die "$DISTRIBUTION is not a supported distribution." ;;
|
||||
esac
|
||||
}
|
||||
|
||||
# Print help message
|
||||
|
@ -5,6 +5,8 @@
|
||||
# when ./configure is given the --full option
|
||||
apparmor.d/groups/_full
|
||||
root/etc/initramfs-tools
|
||||
root/usr/lib/initcpio
|
||||
root/usr/lib/systemd/
|
||||
|
||||
apparmor.d/groups/apps
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user