]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
man: document relationship of .socket units and network namespaces
authorLennart Poettering <lennart@poettering.net>
Mon, 29 Oct 2018 19:20:37 +0000 (20:20 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 30 Oct 2018 14:30:18 +0000 (15:30 +0100)
Fixes: #10018
man/systemd.socket.xml

index 72807be7b6904825f288eed13bbc8e4792f79d7d..fb51ef6658936463b95c263752bc335eb6cfbef5 100644 (file)
     socket passing (i.e. sockets passed in via standard input and
     output, using <varname>StandardInput=socket</varname> in the
     service file).</para>
+
+    <para>All network sockets allocated through <filename>.socket</filename> units are allocated in the host's network
+    namespace (see <citerefentry
+    project='man-pages'><refentrytitle>network_namespaces</refentrytitle><manvolnum>7</manvolnum></citerefentry>). 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 <varname>PrivateNetwork=</varname>, see
+    <citerefentry><refentrytitle>systemd.exec</refentrytitle><manvolnum>5</manvolnum></citerefentry>), 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.</para>
   </refsect1>
 
   <refsect1>