From: Luca Boccassi Date: Sun, 16 Jun 2024 10:16:21 +0000 (+0100) Subject: mkosi: enable unprivileged user ns for integration tests X-Git-Tag: v257-rc1~1120^2~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4cfcde024f34b3e5f682364d4e0c6185ef07d467;p=thirdparty%2Fsystemd.git mkosi: enable unprivileged user ns for integration tests Ubuntu disables them by default in Noble, ship a sysctl to turn them back on so that tests can use them --- 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 index 00000000000..657ac72f8de --- /dev/null +++ b/mkosi.images/system/mkosi.extra/usr/lib/sysctl.d/99-apparmor-unpriv-userns.conf @@ -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