udev: run the main process, workers, and spawned commands in /udev subcgroup
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 16 Mar 2022 11:46:49 +0000 (20:46 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 17 Mar 2022 11:24:38 +0000 (20:24 +0900)
commita1f4fd387603673a79a84ca4e5ce25b439b85fe6
tree3a8ab14b4055ff199ee06b51d6d667f52453d095
parent42670846427c3e00288c1e14afb305965234e51f
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.
src/udev/udevd.c
units/systemd-udevd.service.in