From 5ac368bce7a710c61e7d94bf1e23b03d2ace824e Mon Sep 17 00:00:00 2001 From: John Johansen Date: Tue, 13 Oct 2020 03:48:31 -0700 Subject: [PATCH] regression test: Fix regression tests when using in tree parser When using the in tree parser we should not be using the system parser.conf file, as if the system apparmor is newer than the tree being tested the parser.conf file could contain options not understood by the in tree apparmor_parser. Use --config-file to specify the default in tree parser.conf MR: https://gitlab.com/apparmor/apparmor/-/merge_requests/653 Signed-off-by: John Johansen --- tests/regression/apparmor/uservars.inc.source | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/regression/apparmor/uservars.inc.source b/tests/regression/apparmor/uservars.inc.source index 198df439f..599d35854 100644 --- a/tests/regression/apparmor/uservars.inc.source +++ b/tests/regression/apparmor/uservars.inc.source @@ -3,7 +3,7 @@ subdomain=${PWD}/../../../parser/apparmor_parser #subdomain=/sbin/apparmor_parser # 2. additional arguments to the apparmor parser -parser_args="-q -K" +parser_args="--config-file=${PWD}/../../../parser.conf -q -K" # 3. directory to be used for temp files # Need to be able to access this directory by the root and nobody users.