]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mkosi: enable unprivileged user ns for integration tests
authorLuca Boccassi <bluca@debian.org>
Sun, 16 Jun 2024 10:16:21 +0000 (11:16 +0100)
committerLuca Boccassi <bluca@debian.org>
Mon, 17 Jun 2024 10:12:36 +0000 (11:12 +0100)
Ubuntu disables them by default in Noble, ship a sysctl to turn them back on
so that tests can use them

mkosi.images/system/mkosi.extra/usr/lib/sysctl.d/99-apparmor-unpriv-userns.conf [new file with mode: 0644]

diff --git a/mkosi.images/system/mkosi.extra/usr/lib/sysctl.d/99-apparmor-unpriv-userns.conf b/mkosi.images/system/mkosi.extra/usr/lib/sysctl.d/99-apparmor-unpriv-userns.conf
new file mode 100644 (file)
index 0000000..657ac72
--- /dev/null
@@ -0,0 +1,4 @@
+# Ubuntu since Noble disables unprivileged user namespaces by default, re-enable them as they are needed
+# for integration tests
+kernel.apparmor_restrict_unprivileged_unconfined = 0
+kernel.apparmor_restrict_unprivileged_userns = 0