diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-03-16 12:46:49 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-03-17 12:24:38 +0100 |
commit | a1f4fd387603673a79a84ca4e5ce25b439b85fe6 (patch) | |
tree | 3a8ab14b4055ff199ee06b51d6d667f52453d095 /units/systemd-udevd.service.in | |
parent | Revert "udev: do not kill "udevadm control" process in the same cgroup" (diff) | |
download | systemd-a1f4fd387603673a79a84ca4e5ce25b439b85fe6.tar.xz systemd-a1f4fd387603673a79a84ca4e5ce25b439b85fe6.zip |
udev: run the main process, workers, and spawned commands in /udev subcgroup
And enable cgroup delegation for udevd.
Then, processes invoked through ExecReload= are assigned .control
subcgroup, and they are not killed by cg_kill().
Fixes #16867 and #22686.
Diffstat (limited to 'units/systemd-udevd.service.in')
-rw-r--r-- | units/systemd-udevd.service.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/units/systemd-udevd.service.in b/units/systemd-udevd.service.in index d042bfb0d3..9901198274 100644 --- a/units/systemd-udevd.service.in +++ b/units/systemd-udevd.service.in @@ -16,6 +16,7 @@ Before=sysinit.target ConditionPathIsReadWrite=/sys [Service] +Delegate=pids DeviceAllow=block-* rwm DeviceAllow=char-* rwm Type=notify |