]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
man: explicitly say that BindPaths=/BindReadOnlyPaths= opens a new mount
authorLennart Poettering <lennart@poettering.net>
Mon, 22 Apr 2024 09:18:45 +0000 (11:18 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 22 Apr 2024 13:16:54 +0000 (15:16 +0200)
namespace

Fixes: #32339
man/systemd.exec.xml

index 64b7b07fc7fa666c3f7ba72f7b81131c9d7890cc..598a399b93a476fafc247e629f4ca231aabbed32 100644 (file)
         that in this case both read-only and regular bind mounts are reset, regardless which of the two settings is
         used.</para>
 
+        <para>Using this option implies that a mount namespace is allocated for the unit, i.e. it implies the
+        effect of <varname>PrivateMounts=</varname> (see below).</para>
+
         <para>This option is particularly useful when <varname>RootDirectory=</varname>/<varname>RootImage=</varname>
         is used. In this case the source path refers to a path on the host file system, while the destination path
         refers to a path below the root directory of the unit.</para>
@@ -2372,8 +2375,9 @@ RestrictNamespaces=~cgroup net</programlisting>
         <para>Other file system namespace unit settings — <varname>PrivateTmp=</varname>,
         <varname>PrivateDevices=</varname>, <varname>ProtectSystem=</varname>,
         <varname>ProtectHome=</varname>, <varname>ReadOnlyPaths=</varname>,
-        <varname>InaccessiblePaths=</varname>, <varname>ReadWritePaths=</varname>, … — also enable file
-        system namespacing in a fashion equivalent to this option. Hence it is primarily useful to explicitly
+        <varname>InaccessiblePaths=</varname>, <varname>ReadWritePaths=</varname>,
+        <varname>BindPaths=</varname>, <varname>BindReadOnlyPaths=</varname>, … — also enable file system
+        namespacing in a fashion equivalent to this option. Hence it is primarily useful to explicitly
         request this behaviour if none of the other settings are used.</para>
 
         <xi:include href="system-or-user-ns.xml" xpointer="singular"/>