Fixed in commit 393d5cca6af1070709f2baaf291d16e27fbea366 Author: John Johansen <john.johan...@canonical.com> Date: Thu Oct 5 13:50:51 2017 -0700
Fix test-kernel-security.py when LSM stacking based kernel is used. In the LSM stacking kernel DEFAULT_SECURITY_APPARMOR is not set instead SECURITY_APPARMOR_STACKED is used to indicate it is part of the default stack. BugLink: http://bugs.launchpad.net/bugs/1720660 Signed-off-by: John Johansen <john.johan...@canonical.com> diff --git a/scripts/test-kernel-security.py b/scripts/test-kernel-security.py index 2625f9aa..9eecdca5 100755 --- a/scripts/test-kernel-security.py +++ b/scripts/test-kernel-security.py @@ -668,7 +668,7 @@ class KernelSecurityTest(testlib.TestlibCase): '''CONFIG_SECURITY_APPARMOR enabled''' self.assertEqual(self._get_config('SECURITY_APPARMOR'), 'y') - self.assertEqual(self._get_config('DEFAULT_SECURITY_APPARMOR'), 'y') + self.assertTrue(self._get_config('DEFAULT_SECURITY_APPARMOR') == 'y' or self._get_config('CONFIG_SECURITY_APPARMOR_STACKED') == 'y') self.assertEqual(self._get_config('SECURITY_APPARMOR_BOOTPARAM_VALUE'), '1') # Hardy and newer ** Changed in: linux (Ubuntu) Status: Incomplete => Fix Committed -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1720660 Title: linux 4.13.0-13.14 ADT test failure with linux 4.13.0-13.14 Status in linux package in Ubuntu: Fix Committed Bug description: Testing failed on: amd64: https://objectstorage.prodstack4-5.canonical.com/v1/AUTH_77e2ada1e7a84929a74ba3b87153c0ac/autopkgtest-artful-canonical-kernel-team-bootstrap/artful/amd64/l/linux/20170930_151719_8c658@/log.gz i386: https://objectstorage.prodstack4-5.canonical.com/v1/AUTH_77e2ada1e7a84929a74ba3b87153c0ac/autopkgtest-artful-canonical-kernel-team-bootstrap/artful/i386/l/linux/20170930_220543_8c658@/log.gz ppc64el: https://objectstorage.prodstack4-5.canonical.com/v1/AUTH_77e2ada1e7a84929a74ba3b87153c0ac/autopkgtest-artful-canonical-kernel-team-bootstrap/artful/ppc64el/l/linux/20170930_164802_8c658@/log.gz To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1720660/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp