]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
man: document the modprobe hack for DeviceAllow= 13144/head
authorLennart Poettering <lennart@poettering.net>
Tue, 23 Jul 2019 11:28:44 +0000 (13:28 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 23 Jul 2019 11:30:56 +0000 (13:30 +0200)
man/systemd.resource-control.xml

index e7b5dfbce67cc605c50e31a6b84507ad9385b138..1b5ac3e8e452aab33d3852654980c93cbc9f7c76 100644 (file)
           TTYs and all ALSA sound devices,
           respectively. <literal>char-cpu/*</literal> is a specifier
           matching all CPU related device groups.</para>
+
+          <para>Note that whitelists defined this way should only reference device groups which are
+          resolvable at the time the unit is started. Any device groups not resolvable then are not added to
+          the device whitelist. In order to work around this limitation, consider extending service units
+          with an <command>ExecStartPre=/sbin/modprobe…</command> line that loads the necessary
+          kernel module implementing the device group if missing. Example: <programlisting>…
+[Service]
+ExecStartPre=-/sbin/modprobe -abq loop
+DeviceAllow=block-loop
+DeviceAllow=/dev/loop-control
+…</programlisting></para>
+
         </listitem>
       </varlistentry>