[arch-projects] [netctl][PATCH 2/2] Make dhcpcd/dhclient pid files world readable

Lasse Dalegaard j.witteveen at gmail.com
Thu Feb 27 08:25:28 EST 2014


Needed since 8a41497.
---
 src/lib/dhcp/dhclient | 1 +
 src/lib/dhcp/dhcpcd   | 1 +
 2 files changed, 2 insertions(+)

diff --git a/src/lib/dhcp/dhclient b/src/lib/dhcp/dhclient
index 42b5f14..5dc637c 100644
--- a/src/lib/dhcp/dhclient
+++ b/src/lib/dhcp/dhclient
@@ -13,6 +13,7 @@ dhclient_start() {
         report_error "DHCP IPv$1 lease attempt failed on interface '$Interface'"
         return 1
     fi
+    chmod 644 "$pidfile"
 }
 
 dhclient_stop() {
diff --git a/src/lib/dhcp/dhcpcd b/src/lib/dhcp/dhcpcd
index 42f33ef..c729c08 100644
--- a/src/lib/dhcp/dhcpcd
+++ b/src/lib/dhcp/dhcpcd
@@ -14,6 +14,7 @@ dhcpcd_start() {
         report_error "DHCP IP lease attempt failed on interface '$Interface'"
         return 1
     fi
+    chmod 644 "/run/dhcpcd-$Interface.pid"
 }
 
 dhcpcd_stop() {
-- 
1.9.0



More information about the arch-projects mailing list