man: make clear that accessing network and mounting filesystems is not supported...
authorMichal Sekletar <msekletar@users.noreply.github.com>
Fri, 19 Jan 2018 23:47:27 +0000 (00:47 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 19 Jan 2018 23:47:27 +0000 (08:47 +0900)
These restrictions are implied by systemd options used for
systemd-udevd.service, i.e. MountFlags=slave and
IPAddressDeny=any. However, there are users out there getting tripped by
this, so let's make things clear in the man page so the actual
restrictions we implement by default have better visibility.

man/udev.xml

index 7b42d23..8e58ead 100644 (file)
             <para>Starting daemons or other long-running processes is not appropriate
             for udev; the forked processes, detached or not, will be unconditionally
             killed after the event handling has finished.</para>
+            <para>Note that running programs that access the network or mount/unmount
+            filesystems is not allowed inside of udev rules, due to the default sandbox
+            that is enforced on <filename>systemd-udevd.service</filename>.</para>
           </listitem>
         </varlistentry>