2012-02-24 15:40:27 |
Jamie Strandboge |
description |
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. |
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)
In addition to the above, some pam_apparmor tests also fail:
======================================================================
FAIL: test_pam_default_user_group (__main__.ApparmorPAM)
Test pam (order=default,user,group)
----------------------------------------------------------------------
Traceback (most recent call last):
File "./test-apparmor.py", line 1766, in test_pam_default_user_group
self.assertEquals(expected, rc, result + report)
AssertionError: Got exit code 0, expected 1
you read me
======================================================================
FAIL: test_pam_group_default_user (__main__.ApparmorPAM)
Test pam (order=group,default,user)
----------------------------------------------------------------------
Traceback (most recent call last):
File "./test-apparmor.py", line 1867, in test_pam_group_default_user
self.assertEquals(expected, rc, result + report)
AssertionError: Got exit code 0, expected 1
you read me
======================================================================
FAIL: test_pam_group_user_default (__main__.ApparmorPAM)
Test pam (order=group,user,default)
----------------------------------------------------------------------
Traceback (most recent call last):
File "./test-apparmor.py", line 1723, in test_pam_group_user_default
self.assertEquals(expected, rc, result + report)
AssertionError: Got exit code 0, expected 1
you read me
======================================================================
FAIL: test_pam_user_default_group (__main__.ApparmorPAM)
Test pam (order=user,default,group)
----------------------------------------------------------------------
Traceback (most recent call last):
File "./test-apparmor.py", line 1784, in test_pam_user_default_group
self.assertEquals(expected, rc, result + report)
AssertionError: Got exit code 0, expected 1
you read me
======================================================================
FAIL: test_pam_user_group_default (__main__.ApparmorPAM)
Test pam (order=user,group,default)
----------------------------------------------------------------------
Traceback (most recent call last):
File "./test-apparmor.py", line 1671, in test_pam_user_group_default
self.assertEquals(expected, rc, result + report)
AssertionError: Got exit code 0, expected 1
you read me
Disabling minimization allows these to complete. |
|