On Sun, 2017-12-03 at 15:16 +0100, Christian Boltz wrote:
> Hello,
> 
> I get several failures from test-aa-easyprof.py, for example
> 
> =====================================================================
> =
> ERROR: test_output_directory_single (__main__.T)
> Test output_directory (single)
> -------------------------------------------------------------------
> ---
> Traceback (most recent call last):
>   File "test-aa-easyprof.py", line 2439, in
> test_output_directory_single
>     easyp.output_policy(params, dir=out_dir)
>   File "/home/cb/apparmor/git/apparmor/utils/apparmor/easyprof.py",
> line 696, in output_policy
>     policy = self.gen_policy(**params)
>   File "/home/cb/apparmor/git/apparmor/utils/apparmor/easyprof.py",
> line 690, in gen_policy
>     raise AppArmorException("Invalid policy")
> apparmor.easyprof.AppArmorException: 'Invalid policy'
> 
> 
> There's a total of 50 errors, all with 'Invalid policy'.
> 
> git bisect   tracked this down to
> 
> 
> 7ab65fa5f13c774088d64c3881df798c63d87a44 is the first bad commit
> commit 7ab65fa5f13c774088d64c3881df798c63d87a44
> Author: Tyler Hicks <tyhi...@canonical.com>
> Date:   Thu Mar 2 21:24:33 2017 +0000
> 
>     utils: Set parser executable path according to USE_SYSTEM make
> variable
>     
>     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 <tyhi...@canonical.com>
>     Acked-by: Christian Boltz <appar...@cboltz.de>
>     Acked-by: Seth Arnold <seth.arn...@canonical.com>
> 
> :040000 040000 870632a03f5f6b013312ed6e68ac0a13c54573a7
> b6b046c11c47cb5ed2dbe125ed45c19e5c3e9114 M      utils
> 
> 
> The "fix" is   make -C parser   but I'd prefer to have a Makefile 
> dependency instead of confusing and misleading test failures ;-)
> 
> Tylor, since you broke it, can you please submit a fix for trunk and
> 2.11? ;-)
> (based on the commit date, I'd guess that older releases aren't
> affected)
> 
> Also, a better error message than 'Invalid policy' would be helpful
> ;-)

I might mention that easyprof was developed to support an Ubuntu
feature and upstreamed since it was plausibly useful to AppArmor users.
Ubuntu has stopped using the feature officially and is in the process
of remove consumers of the easyprof library in its archive (since it
fell out of use).

I'm not aware if other downstreams who are using easyprof and
considering no one noticed this broke 10 months ago, I can't help but
wonder if it is worth keeping?

-- 
Jamie Strandboge             | http://www.canonical.com

Attachment: signature.asc
Description: This is a digitally signed message part

-- 
AppArmor mailing list
AppArmor@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/apparmor

Reply via email to