mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-22 01:57:43 +00:00
Merge 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 Acked-by: Steve Beattie <steve.beattie@canonical.com>
This commit is contained in:
commit
71a51fcb18
@ -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
|
||||
}
|
||||
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user