Skip to content

Commit 483e446

Browse files
committed
dhcpcd: fix permissions error with secondary IPv4 addresses
If dhcpcd receives a secondary IPv4 address from the DHCP server it tries to enable automatic promotion from secondary to primary by writing `1` to /proc/sys/net/ipv4/conf/%s/promote_secondaries.
1 parent 8fafc35 commit 483e446

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nixos/modules/services/networking/dhcpcd.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ in
249249
ExecReload = "${dhcpcd}/sbin/dhcpcd --rebind";
250250
Restart = "always";
251251
AmbientCapabilities = [ "CAP_NET_ADMIN" "CAP_NET_RAW" "CAP_NET_BIND_SERVICE" ];
252-
ReadWritePaths = [ "/proc/sys/net/ipv6" ]
252+
ReadWritePaths = [ "/proc/sys/net/ipv4" "/proc/sys/net/ipv6" ]
253253
++ lib.optionals useResolvConf ([ "/run/resolvconf" ] ++ config.networking.resolvconf.subscriberFiles);
254254
DeviceAllow = "";
255255
LockPersonality = true;

0 commit comments

Comments
 (0)