From: Lucas Werkmeister Date: Sun, 4 Jan 2026 13:19:14 +0000 (+0100) Subject: man/systemd.socket: Document JoinsNamespaceOf= support X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f8e1a7a66e248c758bb3741858ccf9838f06d735;p=thirdparty%2Fsystemd.git man/systemd.socket: Document JoinsNamespaceOf= support This has been supported since systemd v242 (specifically commit 7619cb32f0 if I’m not mistaken; added to NEWS in commit 4107452e51), but the man page still claimed otherwise. --- diff --git a/man/systemd.socket.xml b/man/systemd.socket.xml index 213ceffcdbd..0de281f02ec 100644 --- a/man/systemd.socket.xml +++ b/man/systemd.socket.xml @@ -90,7 +90,7 @@ socket passing (i.e. sockets passed in via standard input and output, using StandardInput=socket in the service file). - All network sockets allocated through .socket units are allocated in the host's network + By default, network sockets allocated through .socket units are allocated in the host's network namespace (see network_namespaces7). This does not mean however that the service activated by a configured socket unit has to be part of the host's network @@ -101,6 +101,11 @@ the host's network namespace is only permitted through the activation sockets passed in while all sockets allocated from the service code itself will be associated with the service's own namespace, and thus possibly subject to a restrictive configuration. + + Alternatively, it is possible to run a .socket unit in another network namespace + by setting in combination with JoinsNamespaceOf=, see + systemd.exec5 and + systemd.unit5 for details.