From: Lennart Poettering Date: Mon, 29 Oct 2018 19:20:37 +0000 (+0100) Subject: man: document relationship of .socket units and network namespaces X-Git-Tag: v240~441^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=48e6dd376313c92db06558e061121af8205b55ca;p=thirdparty%2Fsystemd.git man: document relationship of .socket units and network namespaces Fixes: #10018 --- diff --git a/man/systemd.socket.xml b/man/systemd.socket.xml index 72807be7b69..fb51ef66589 100644 --- a/man/systemd.socket.xml +++ b/man/systemd.socket.xml @@ -94,6 +94,18 @@ 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 + 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 + namespace as well. It is supported and even good practice to run services in their own network namespace (for + example through PrivateNetwork=, see + systemd.exec5), receiving only + the sockets configured through socket-activation from the host's namespace. In such a set-up communication within + 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 a + much more restrictive configuration.