Skip to content

Commit f562abe

Browse files
committed
unit: drop ProtectClock=yes from systemd-udevd.service
This partially reverts cabc1c6. 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.
1 parent 365c288 commit f562abe

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

units/systemd-udevd.service.in

-3
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ ConditionPathIsReadWrite=/sys
1717

1818
[Service]
1919
Delegate=pids
20-
DeviceAllow=block-* rwm
21-
DeviceAllow=char-* rwm
2220
Type=notify
2321
# Note that udev will reset the value internally for its workers
2422
OOMScoreAdjust=-1000
@@ -30,7 +28,6 @@ ExecReload=udevadm control --reload --timeout 0
3028
KillMode=mixed
3129
TasksMax=infinity
3230
PrivateMounts=yes
33-
ProtectClock=yes
3431
ProtectHostname=yes
3532
MemoryDenyWriteExecute=yes
3633
RestrictAddressFamilies=AF_UNIX AF_NETLINK AF_INET AF_INET6

0 commit comments

Comments
 (0)