mirror of
https://github.com/systemd/systemd.git
synced 2024-11-05 15:21:37 +03:00
fc1de713f5
We should bind the udev socket from systemd, so we are sure that the abstract namespace socket is always bound by a root process and there is never a window during an update where an untrusted process can steal our socket. Also split the udev.service file, so that the daemon can be updated/restarted without triggering any coldplug events.
12 lines
296 B
SYSTEMD
12 lines
296 B
SYSTEMD
[Unit]
|
|
Description=udev Coldplug all Devices
|
|
Requires=udev.service
|
|
After=udev.service
|
|
Before=basic.target
|
|
DefaultDependencies=no
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
RemainAfterExit=yes
|
|
ExecStart=@sbindir@/udevadm trigger --type=subsystems --action=add ; @sbindir@/udevadm trigger --type=devices --action=add
|