Iain Lane
625077264b
units: Split modprobing out into a separate service unit
...
Devices referred to by `DeviceAllow=` sandboxing are resolved into their
corresponding major numbers when the unit is loaded by looking at
`/proc/devices`. If a reference is made to a device which is not yet
available, the `DeviceAllow` is ignored and the unit's processes cannot
access that device.
In both logind and nspawn, we have `DeviceAllow=` lines, and `modprobe`
in `ExecStartPre=` to load some kernel modules. Those kernel modules
cause device nodes to become available when they are loaded: the device
nodes may not exist when the unit itself is loaded. This means that the
unit's processes will not be able to access the device since the
`DeviceAllow=` will have been resolved earlier and denied it.
One way to fix this would be to re-evaluate the available devices and
re-apply the policy to the cgroup, but this cannot work atomically on
cgroupsv1. So we fall back to a second approach: instead of running
`modprobe` via `ExecStartPre`, we move this out to a separate unit and
order it before the units which want the module.
Closes #14322 .
Fixes : #13943 .
2020-01-07 18:37:30 +01:00
..
2019-07-29 15:54:53 +02:00
2018-10-13 12:59:29 +02:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2018-10-19 22:34:50 +02:00
2018-04-17 19:49:10 +02:00
2018-04-17 19:49:10 +02:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2019-04-29 17:06:52 +02:00
2017-11-19 19:08:15 +01:00
2019-03-25 19:39:00 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2019-01-28 13:41:28 +01:00
2019-12-17 21:38:11 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2019-08-19 11:05:58 +02:00
2017-11-19 19:08:15 +01:00
2019-12-19 10:42:14 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2019-04-12 08:30:31 +02:00
2020-01-07 18:37:30 +01:00
2020-01-07 18:37:30 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2019-09-25 23:44:01 +09:00
2017-11-19 19:08:15 +01:00
2017-12-26 12:13:51 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2019-12-19 10:42:14 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2018-03-28 15:26:18 -05:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2019-03-25 19:39:00 +01:00
2019-03-25 19:39:00 +01:00
2019-03-25 19:39:00 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2019-12-05 11:43:02 +01:00
2019-05-24 10:48:28 +02:00
2018-06-20 12:46:18 +02:00
2018-06-20 18:14:43 +02:00
2018-09-26 18:13:32 +02:00
2018-09-26 18:13:32 +02:00
2018-09-26 18:13:32 +02:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2019-09-25 23:44:01 +09:00
2018-10-19 22:34:50 +02:00
2018-10-19 22:34:50 +02:00
2019-11-21 19:55:17 +01:00
2017-11-19 19:08:15 +01:00
2019-11-15 00:59:54 -08:00
2018-11-16 12:25:35 +01:00
2017-11-19 19:08:15 +01:00
2018-11-26 22:18:16 +01:00
2018-11-26 22:18:16 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2019-11-15 00:59:54 -08:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2019-10-25 17:20:24 +02:00
2018-11-12 19:02:55 +01:00
2018-03-30 16:52:14 -04:00
2019-03-14 11:28:19 +01:00
2019-05-09 14:26:42 -04:00
2019-11-15 00:59:54 -08:00
2017-11-19 19:08:15 +01:00
2019-11-15 00:59:54 -08:00
2017-11-19 19:08:15 +01:00
2019-11-15 00:59:54 -08:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2019-10-25 17:20:24 +02:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2019-11-15 00:59:54 -08:00
2020-01-07 18:37:30 +01:00
2017-11-19 19:08:15 +01:00
2019-11-15 00:59:54 -08:00
2017-11-19 19:08:15 +01:00
2019-07-30 02:30:09 +09:00
2017-11-19 19:08:15 +01:00
2019-11-15 00:59:54 -08:00
2020-01-02 10:29:41 +01:00
2020-01-07 18:37:30 +01:00
2019-11-15 00:59:54 -08:00
2018-10-17 19:31:50 +02:00
2019-07-22 14:31:21 +09:00
2017-11-19 19:08:15 +01:00
2019-08-05 20:21:38 +02:00
2018-10-17 19:31:50 +02:00
2019-01-03 15:30:28 +01:00
2019-11-15 00:59:54 -08:00
2018-11-12 19:02:55 +01:00
2018-11-24 23:59:37 +09:00
2018-03-28 15:26:18 -05:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2018-03-22 23:41:54 +03:00
2019-11-15 00:59:54 -08:00
2019-11-15 00:59:54 -08:00
2019-07-29 15:54:53 +02:00
2017-11-19 19:08:15 +01:00
2019-07-29 15:54:53 +02:00
2019-07-29 15:54:53 +02:00
2019-04-10 10:12:43 +02:00
2018-06-20 23:59:29 +02:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2019-10-25 17:20:24 +02:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2019-04-08 14:34:05 +02:00
2019-04-08 14:34:05 +02:00
2017-11-19 19:08:15 +01:00
2019-02-20 18:31:18 +01:00
2017-11-19 19:08:15 +01:00
2019-02-15 18:16:27 +01:00
2018-10-13 12:59:29 +02:00
2017-11-19 19:08:15 +01:00
2019-03-19 10:58:20 +01:00
2018-11-26 18:09:01 +01:00