Comment 0 for bug 940362

Revision history for this message
Jamie Strandboge (jdstrand) wrote : 2.8beta1 doesn't always work with minimization enabled

With minimization enabled, test-apparmor.py fails in various places. One failure is the following, which causes a kernel NULL pointer dereference:
$ sudo /sbin/apparmor_parser --write-cache --replace -T /etc/apparmor.d/usr.bin.evince

This is worked around with the following:
$ sudo /sbin/apparmor_parser --write-cache --replace -T -O no-minimize /etc/apparmor.d/usr.bin.evince

Additionally, with minimization in effect, the python environment filtering tests fail, but with no denials in the log. Eg:
======================================================================
FAIL: test_envfilter_python (__main__.ApparmorEnvFilter)
Test python environment filtering (PYTHONPATH)
----------------------------------------------------------------------
...
IOError: invalid Python installation: unable to open /usr/include/python2.7/pyconfig.h (Permission denied)

Disabling minimization allows these to complete.