Skip to content

Commit e7bd1e2

Browse files
authored
nixos/dhcpcd: update sandboxing options (NixOS#349041)
2 parents d57a6c1 + 21bb7ea commit e7bd1e2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nixos/modules/services/networking/dhcpcd.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,6 +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+
CapabilityBoundingSet = [ "CAP_NET_ADMIN" "CAP_NET_RAW" "CAP_NET_BIND_SERVICE" ];
252253
ReadWritePaths = [ "/proc/sys/net/ipv4" ]
253254
++ lib.optional cfgN.enableIPv6 "/proc/sys/net/ipv6"
254255
++ lib.optionals useResolvConf ([ "/run/resolvconf" ] ++ config.networking.resolvconf.subscriberFiles);
@@ -276,7 +277,7 @@ in
276277
RestrictSUIDSGID = true;
277278
SystemCallFilter = [
278279
"@system-service"
279-
"~@aio" "~@chown" "~@keyring" "~@memlock"
280+
"~@aio" "~@keyring" "~@memlock" "~@mount" "~@privileged" "~@resources"
280281
];
281282
SystemCallArchitectures = "native";
282283
UMask = "0027";

0 commit comments

Comments
 (0)