diff --git a/tests/regression/apparmor/aa_policy_cache.sh b/tests/regression/apparmor/aa_policy_cache.sh index 8a787a8af..6fe97e470 100755 --- a/tests/regression/apparmor/aa_policy_cache.sh +++ b/tests/regression/apparmor/aa_policy_cache.sh @@ -56,7 +56,7 @@ create_cache_files() do cachefile="${cachedir}/${policy}" - echo "profile $policy { /f r, }" | ${subdomain} -qS > "$cachefile" + echo "profile $policy { /f r, }" | ${subdomain} "${parser_config}" -qS > "$cachefile" done } diff --git a/tests/regression/apparmor/uservars.inc.source b/tests/regression/apparmor/uservars.inc.source index 198df439f..5ec1aa6ff 100644 --- a/tests/regression/apparmor/uservars.inc.source +++ b/tests/regression/apparmor/uservars.inc.source @@ -3,7 +3,8 @@ subdomain=${PWD}/../../../parser/apparmor_parser #subdomain=/sbin/apparmor_parser # 2. additional arguments to the apparmor parser -parser_args="-q -K" +parser_config="--config-file=${PWD}/../../../parser/parser.conf" +parser_args="${parser_config} -q -K" # 3. directory to be used for temp files # Need to be able to access this directory by the root and nobody users. diff --git a/tests/regression/apparmor/uservars.inc.system b/tests/regression/apparmor/uservars.inc.system index c448a6b7f..6c41ac444 100644 --- a/tests/regression/apparmor/uservars.inc.system +++ b/tests/regression/apparmor/uservars.inc.system @@ -3,7 +3,9 @@ subdomain=/sbin/apparmor_parser # 2. additional arguments to the apparmor parser -parser_args="-q -K" +parser_config="" +parser_args="${parser_config} -q -K" + # 3. directory to be used for temp files # Need to be able to access this directory by the root and nobody users.