Accepting request 1148955 from home:dmdiss:aa_multivers_openssl_prof

- Only run utils and profiles make check if kernel LSM is enabled
  (bsc#1220084)

OBS-URL: https://build.opensuse.org/request/show/1148955
OBS-URL: https://build.opensuse.org/package/show/security:apparmor/apparmor?expand=0&rev=399
This commit is contained in:
Goldwyn Rodrigues 2024-03-01 19:52:43 +00:00 committed by Git OBS Bridge
parent 8cf3c6a617
commit 4fb7056ea8
2 changed files with 20 additions and 7 deletions

View File

@ -14,6 +14,12 @@ Tue Feb 20 10:16:27 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
- Use %patch -P N instead of deprecated %patchN.
-------------------------------------------------------------------
Tue Feb 20 02:41:09 UTC 2024 - David Disseldorp <ddiss@suse.com>
- Only run utils and profiles make check if kernel LSM is enabled
(bsc#1220084)
-------------------------------------------------------------------
Thu Feb 8 05:20:26 UTC 2024 - David Disseldorp <ddiss@suse.com>

View File

@ -434,17 +434,24 @@ make check -C libraries/libapparmor
make check -C parser
make check -C binutils
# profiles make check fails for the utils (they expect /sbin/apparmor_parser to exist), therefore only do parser-based check
make -C profiles check-parser
# some tests depend on kernel LSM (e.g. access /proc/PID/attr/apparmor/current)
if grep -q apparmor /sys/kernel/security/lsm; then
# profiles make check fails for the utils (they expect
# /sbin/apparmor_parser to exist), therefore only do parser-based check
make -C profiles check-parser
# test for a few files that should exist in the cache
%if %{with precompiled_cache}
test -f profiles/cache/*/bin.ping
test -f profiles/cache/*/.features
# test for a few files that should exist in the cache
test -f profiles/cache/*/bin.ping
test -f profiles/cache/*/.features
%endif
# run checks in utils except linting -- https://gitlab.com/apparmor/apparmor/-/issues/121
make check -o check_lint -C utils
# run checks in utils except linting -- https://gitlab.com/apparmor/apparmor/-/issues/121
make check -o check_lint -C utils
else
# clear grep status to avoid flagging check failure
true
fi
%install
# libapparmor: swig bindings only, libapparmor is packaged via libapparmor.spec