]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
nspawn: drop compat glue for kernel < 3.14
authorMike Yuan <me@yhndnzj.com>
Sun, 18 Jan 2026 21:32:20 +0000 (22:32 +0100)
committerMike Yuan <me@yhndnzj.com>
Mon, 19 Jan 2026 11:51:55 +0000 (12:51 +0100)
README
src/nspawn/nspawn.c

diff --git a/README b/README
index 2b19d2f21b53fbffd9a8f7c6dd1ff997ae567355..56361f5eef30f1ca2da9fba324e11dbbbee7a9a1 100644 (file)
--- a/README
+++ b/README
@@ -199,19 +199,6 @@ REQUIREMENTS:
           CONFIG_PSI
           CONFIG_MEMCG
 
-        Note that kernel auditing is broken when used with systemd's container
-        code. When using systemd in conjunction with containers, please make
-        sure to either turn off auditing at runtime using the kernel command
-        line option "audit=0", or turn it off at kernel compile time using:
-          CONFIG_AUDIT=n
-
-        If systemd is compiled with libseccomp support on architectures which do
-        not use socketcall() and where seccomp is supported (this effectively
-        means x86-64 and ARM, but excludes 32-bit x86!), then nspawn will now
-        install a work-around seccomp filter that makes containers boot even
-        with audit being enabled. This works correctly only on kernels 3.14 and
-        newer though. TL;DR: turn audit off, still.
-
         glibc >= 2.31
         libxcrypt >= 4.4.0 (optional)
         libmount >= 2.30 (from util-linux)
index a7b43cba910a84313f7a6c0b3a47feae522e518f..851454dafa6905a3d1fff68ff8ea0736c4ca2760 100644 (file)
@@ -2767,16 +2767,8 @@ static int reset_audit_loginuid(void) {
                 return 0;
 
         r = write_string_file("/proc/self/loginuid", "4294967295", WRITE_STRING_FILE_DISABLE_BUFFER);
-        if (r < 0) {
-                log_error_errno(r,
-                                "Failed to reset audit login UID. This probably means that your kernel is too\n"
-                                "old and you have audit enabled. Note that the auditing subsystem is known to\n"
-                                "be incompatible with containers on old kernels. Please make sure to upgrade\n"
-                                "your kernel or to off auditing with 'audit=0' on the kernel command line before\n"
-                                "using systemd-nspawn. Sleeping for 5s... (%m)");
-
-                sleep(5);
-        }
+        if (r < 0)
+                return log_error_errno(r, "Failed to reset audit login UID: %m");
 
         return 0;
 }