mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 08:58:15 +01:00
build: initial support for opensuse.
This commit is contained in:
parent
222b57acb5
commit
e031c129ed
1 changed files with 6 additions and 1 deletions
7
configure
vendored
7
configure
vendored
|
@ -102,6 +102,11 @@ configure() {
|
||||||
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
opensuse)
|
||||||
|
LIBEXEC="/{usr/,}libexec"
|
||||||
|
sed -i -e '/Archlinux/d' "$ROOT/apparmor.d/tunables/extend"
|
||||||
|
;;
|
||||||
|
|
||||||
*) _die "$DISTRIBUTION is not a supported distribution." ;;
|
*) _die "$DISTRIBUTION is not a supported distribution." ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
@ -142,7 +147,7 @@ _resolve_attachments() {
|
||||||
# Parse the variables in the profile hearder
|
# Parse the variables in the profile hearder
|
||||||
variables=(
|
variables=(
|
||||||
[libexec]="$LIBEXEC" [multiarch]="*-linux-gnu*"
|
[libexec]="$LIBEXEC" [multiarch]="*-linux-gnu*"
|
||||||
[user_share_dirs]="/home/*/.local/share"
|
[user_share_dirs]="/home/*/.local/share" [etc_ro]="/{usr/,}etc/"
|
||||||
)
|
)
|
||||||
mapfile -t lines < <(grep '^@{.*}[ ]*[+=][ ]*.*$' "$path")
|
mapfile -t lines < <(grep '^@{.*}[ ]*[+=][ ]*.*$' "$path")
|
||||||
for line in "${lines[@]}"; do
|
for line in "${lines[@]}"; do
|
||||||
|
|
Loading…
Reference in a new issue