[apparmor] [PATCH 8/8] utils: Set parser executable path according to USE_SYSTEM make variable
Seth Arnold
seth.arnold at canonical.com
Thu Feb 9 00:23:59 UTC 2017
On Wed, Feb 08, 2017 at 10:01:45PM +0000, Tyler Hicks wrote:
> if USE_SYSTEM is not set, the utils make check target will instruct
> test-aa-easyprof.py to provide the path of the in-tree parser executable
> to aa-easyprof.
>
> If USE_SYSTEM is set, the default parser path (/sbin/apparmor_parser or
> the result of `which apparmor_parser`) is used.
>
> The test-aa-easyprof.py script receives the parser path by checking the
> __AA_PARSER environment variable. This environment variable is strictly
> used by the test script and not any user-facing code so two leading
> underscores were used.
>
> Signed-off-by: Tyler Hicks <tyhicks at canonical.com>
> Cc: Christian Boltz <apparmor at cboltz.de>
> Cc: Jamie Strandboge <jamie at ubuntu.com>
> ---
This appears to suffer a similar problem:
> + # Check __AA_PARSER, which may be set by the Makefile, to see if
> + # we should use a non-default apparmor_parser path to verify
> + # policy
> + parser = os.getenv('__AA_PARSER')
> + if parser:
> + self.full_args.append('--parser=%s' % parser)
> +
> if debugging:
> self.full_args.append('-d')
Thanks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20170208/d49fb477/attachment.pgp>
More information about the AppArmor
mailing list