chore: update debian & ubuntu configuration.

This commit is contained in:
Alexandre Pujol 2022-05-21 17:33:26 +01:00
parent 63b5ecd123
commit b294b17da9
Failed to generate hash of commit

22
configure vendored
View file

@ -64,26 +64,20 @@ configure() {
;;
debian|ubuntu)
if [[ "$DISTRIBUTION" == "debian" ]]; then
_msg "$DISTRIBUTION does not have etc tunable."
sed -i -e '/etc/d' "$ROOT/apparmor.d/tunables/global"
_msg "$DISTRIBUTION does not support abi 3.0 yet."
find "$ROOT/apparmor.d" -type f -exec sed -e '/abi /d' -i {} \;
fi
_msg "Configure libexec."
sed -i -e '/Archlinux/d' "$ROOT/apparmor.d/tunables/extend"
_msg "$DISTRIBUTION does not support abi 3.0 yet."
find "$ROOT/apparmor.d" -type f -exec sed -e '/abi /d' -i {} \;
_msg "$DISTRIBUTION does not have etc tunable."
sed -i -e '/etc/d' "$ROOT/apparmor.d/tunables/global"
_msg "Displace overwritten files."
_displace_files apparmor.d/tunables/global apparmor.d/tunables/xdg-user-dirs
if [[ "$DISTRIBUTION" == "ubuntu" ]]; then
_msg "Ubuntu LTS compatibility."
echo "@{run}=/run/ /var/run/" > "$ROOT/apparmor.d/tunables/run"
sed -i -e '/capability bpf/d' -e '/capability perfmon/d' \
"$ROOT/apparmor.d/libvirtd"
cp -a dists/ubuntu/abstractions/* $ROOT/apparmor.d/abstractions
fi
;;
*) _die "$DISTRIBUTION is not a supported distribution." ;;