mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-12-26 06:58:00 +01:00
4e5f4cb06a
Add the udbus variable to be used in `unix bind` rule for dbus.
27 lines
505 B
Bash
27 lines
505 B
Bash
#!/usr/bin/env bash
|
|
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2024 Alexandre Pujol <alexandre@pujol.io>
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
# Dependencies for the bats integration tests
|
|
|
|
set -eu
|
|
|
|
# shellcheck source=/dev/null
|
|
_lsb_release() {
|
|
. /etc/os-release || exit 1
|
|
echo "$ID"
|
|
}
|
|
DISTRIBUTION="$(_lsb_release)"
|
|
|
|
case "$DISTRIBUTION" in
|
|
arch)
|
|
;;
|
|
debian | ubuntu | whonix)
|
|
sudo apt-get install -y \
|
|
cpuid dfc systemd-userdbd systemd-homed tlp
|
|
;;
|
|
opensuse*)
|
|
;;
|
|
*) ;;
|
|
esac
|