]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mkosi: Remove enforcing=0 from default kernel command line 33752/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 17 Jul 2024 16:56:02 +0000 (18:56 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 17 Jul 2024 16:56:02 +0000 (18:56 +0200)
We already have selinux=0 in the default kernel command line so
enforcing=0 is redundant. Instead, pass in enforcing=0 when we
enable selinux in TEST-06-SELINUX.

mkosi.conf
test/TEST-06-SELINUX/meson.build

index b1ac8950af60cfc350d393493ece52fe2a043a98..56a89e8c228b56cfdcc7c56cc3861191d00f20d2 100644 (file)
@@ -68,7 +68,6 @@ KernelCommandLine=systemd.crash_shell
                   systemd.default_device_timeout_sec=30
                   # Make sure no LSMs are enabled by default.
                   selinux=0
-                  enforcing=0
                   systemd.early_core_pattern=/core
                   systemd.firstboot=no
                   raid=noautodetect
index ea1a381471b164410c3c3047b4616f993e5b88eb..fd670ae40da3e2eff136ad8e0119af245bc3dd52 100644 (file)
@@ -3,7 +3,7 @@
 integration_tests += [
         integration_test_template + {
                 'name' : fs.name(meson.current_source_dir()),
-                'cmdline' : integration_test_template['cmdline'] + ['selinux=1', 'lsm=selinux'],
+                'cmdline' : integration_test_template['cmdline'] + ['selinux=1', 'enforcing=0', 'lsm=selinux'],
                 # FIXME; Figure out why reboot sometimes hangs with 'linux' firmware.
                 # Use 'auto' to automatically fallback on non-uefi architectures.
                 'firmware' : 'auto',