]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
kmod-setup: don't load unix.ko as a module anymore
authorLennart Poettering <lennart@poettering.net>
Thu, 16 Oct 2025 14:07:36 +0000 (16:07 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 16 Oct 2025 15:42:33 +0000 (17:42 +0200)
Building unix.ko as a module always has been a really bad idea, from day
1. Debian used to do this, but has long been fixed. Kernel developers
saw the light too, and removed support for it in 6.5
(97154bcf4d1b7cabefec8a72cff5fbb91d5afb7b). Let's hence drop support for
this here too, and delete some old cruft. AF_UNIX is simply our most
basic IPC system and supporting systems without it being around is just
not realistic.

src/core/kmod-setup.c

index 1f694b29d943eb940739ceb6491289e9570a5735..e63e4d228d5b768790b3ece1b1244ca88d68807b 100644 (file)
@@ -112,9 +112,6 @@ int kmod_setup(void) {
                  * we try to configure ::1 on the loopback device. */
                 { "ipv6",                       "/sys/module/ipv6",          false, true,  NULL               },
 
-                /* This should never be a module */
-                { "unix",                       "/proc/net/unix",            true,  true,  NULL               },
-
                 /* virtio_rng would be loaded by udev later, but real entropy might be needed very early */
                 { "virtio_rng",                 NULL,                        false, false, has_virtio_rng     },