]> git.ipfire.org Git - thirdparty/systemd.git/commit
unit: drop ProtectClock=yes from systemd-udevd.service
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 14 Sep 2022 21:07:22 +0000 (06:07 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 15 Sep 2022 18:41:29 +0000 (03:41 +0900)
commitf562abe2963bad241d34e0b308e48cf114672c84
tree8aad6c2cb6c190a93b5e7019f4b4dcdd85b2c772
parent365c2885f01371e547ae880ebfd920131b436735
unit: drop ProtectClock=yes from systemd-udevd.service

This partially reverts cabc1c6d7adae658a2966a4b02a6faabb803e92b.

The setting ProtectClock= implies DeviceAllow=, which is not suitable
for udevd. Although we are slowly removing cgropsv1 support, but
DeviceAllow= with cgroupsv1 is necessarily racy, and reloading PID1
during the early boot process may cause issues like #24668.

Let's disable ProtectClock= for udevd. And, if necessary, let's
explicitly drop CAP_SYS_TIME and CAP_WAKE_ALARM (and possibly others)
by using CapabilityBoundingSet= later.

Fixes #24668.
units/systemd-udevd.service.in