chiark / gitweb /
udev: replace CAP_MKNOD by writable /sys condition
authorKay Sievers <kay@vrfy.org>
Sat, 17 Aug 2013 17:07:42 +0000 (19:07 +0200)
committerKay Sievers <kay@vrfy.org>
Sat, 17 Aug 2013 17:07:42 +0000 (19:07 +0200)
units/systemd-udev-settle.service.in
units/systemd-udev-trigger.service.in
units/systemd-udevd-control.socket
units/systemd-udevd-kernel.socket

index 037dd9a..0817803 100644 (file)
@@ -16,7 +16,7 @@ DefaultDependencies=no
 Wants=systemd-udevd.service
 After=systemd-udev-trigger.service
 Before=sysinit.target
-ConditionCapability=CAP_MKNOD
+ConditionPathIsReadWrite=/sys
 
 [Service]
 Type=oneshot
index 604c369..0c33909 100644 (file)
@@ -12,7 +12,7 @@ DefaultDependencies=no
 Wants=systemd-udevd.service
 After=systemd-udevd-kernel.socket systemd-udevd-control.socket
 Before=sysinit.target
-ConditionCapability=CAP_MKNOD
+ConditionPathIsReadWrite=/sys
 
 [Service]
 Type=oneshot
index ca17102..8330a1c 100644 (file)
@@ -10,7 +10,7 @@ Description=udev Control Socket
 Documentation=man:systemd-udevd.service(8) man:udev(7)
 DefaultDependencies=no
 Before=sockets.target
-ConditionCapability=CAP_MKNOD
+ConditionPathIsReadWrite=/sys
 
 [Socket]
 Service=systemd-udevd.service
index 4b8a5b0..39b7809 100644 (file)
@@ -10,7 +10,7 @@ Description=udev Kernel Socket
 Documentation=man:systemd-udevd.service(8) man:udev(7)
 DefaultDependencies=no
 Before=sockets.target
-ConditionCapability=CAP_MKNOD
+ConditionPathIsReadWrite=/sys
 
 [Socket]
 Service=systemd-udevd.service