]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tests: force booting the kernel with SELinux
authorMartin Pitt <martin.pitt@ubuntu.com>
Thu, 23 Jun 2016 08:25:44 +0000 (10:25 +0200)
committerMartin Pitt <martin.pitt@ubuntu.com>
Fri, 24 Jun 2016 09:28:35 +0000 (11:28 +0200)
selinux=1 is not sufficient when running on a kernel which also has another LSM
(such as AppArmor) enabled and defaults to that.

test/TEST-06-SELINUX/test.sh

index 4f5895be66b1143756e25c4d82f9e885857b2e8b..1ae4a7c0d96579c471b207deca72b80b48472e83 100755 (executable)
@@ -10,7 +10,7 @@ TEST_DESCRIPTION="SELinux tests"
 
 . $TEST_BASE_DIR/test-functions
 SETUP_SELINUX=yes
-KERNEL_APPEND="$KERNEL_APPEND selinux=1"
+KERNEL_APPEND="$KERNEL_APPEND selinux=1 security=selinux"
 
 check_result_qemu() {
     ret=1