From 37a82e8b1769b2247654bce18a8a18e8f505cd5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20B=C3=A9lair?= Date: Mon, 12 May 2025 11:36:28 +0200 Subject: [PATCH] profiles: automate attachment-path check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `make check-parser` in profiles now verifies that all profiles allow at least a read access to their attachment path. Signed-off-by: Maxime Bélair --- profiles/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/profiles/Makefile b/profiles/Makefile index d48d26974..77a1e8e64 100644 --- a/profiles/Makefile +++ b/profiles/Makefile @@ -123,12 +123,14 @@ check-parser: test-dependencies $(Q)for profile in $$(find ${PROFILES_SOURCE} -maxdepth 1 -type f) ; do \ [ -n "${VERBOSE}" ] && echo "Testing $${profile}" ; \ ${PARSER} --config-file=../parser/tst/parser.conf -S -b ${PROFILES_SOURCE} $${profile} > /dev/null || exit 1; \ + ../parser/tst/test_profile.py $${profile} --config-file=../parser/tst/parser.conf -S -b ${PROFILES_SOURCE} || exit 1; \ done @echo "*** Checking profiles from ${EXTRAS_SOURCE} against apparmor_parser" $(Q)for profile in $$(find ${EXTRAS_SOURCE} -maxdepth 1 -type f -not -name README) ; do \ [ -n "${VERBOSE}" ] && echo "Testing $${profile}" ; \ ${PARSER} --config-file=../parser/tst/parser.conf -S -b ${EXTRAS_SOURCE} -I ${PROFILES_SOURCE} $${profile} > /dev/null || exit 1; \ + ../parser/tst/test_profile.py $${profile} --config-file=../parser/tst/parser.conf -S -b ${PROFILES_SOURCE} || exit 1; \ done @echo "*** Checking abstractions from ${ABSTRACTIONS_SOURCE} against apparmor_parser"