mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-30 23:05:11 +01:00
chore: update debian & ubuntu configuration.
This commit is contained in:
parent
63b5ecd123
commit
b294b17da9
1 changed files with 8 additions and 14 deletions
22
configure
vendored
22
configure
vendored
|
@ -64,26 +64,20 @@ configure() {
|
||||||
;;
|
;;
|
||||||
|
|
||||||
debian|ubuntu)
|
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."
|
_msg "Configure libexec."
|
||||||
sed -i -e '/Archlinux/d' "$ROOT/apparmor.d/tunables/extend"
|
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."
|
_msg "Displace overwritten files."
|
||||||
_displace_files apparmor.d/tunables/global apparmor.d/tunables/xdg-user-dirs
|
_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." ;;
|
*) _die "$DISTRIBUTION is not a supported distribution." ;;
|
||||||
|
|
Loading…
Reference in a new issue