mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-13 13:15:30 +03:00
nixos/dhcpcd: update sandboxing options
This commit is contained in:
parent
5dec6c3523
commit
21bb7ea948
1 changed files with 2 additions and 1 deletions
|
@ -249,6 +249,7 @@ in
|
|||
ExecReload = "${dhcpcd}/sbin/dhcpcd --rebind";
|
||||
Restart = "always";
|
||||
AmbientCapabilities = [ "CAP_NET_ADMIN" "CAP_NET_RAW" "CAP_NET_BIND_SERVICE" ];
|
||||
CapabilityBoundingSet = [ "CAP_NET_ADMIN" "CAP_NET_RAW" "CAP_NET_BIND_SERVICE" ];
|
||||
ReadWritePaths = [ "/proc/sys/net/ipv4" ]
|
||||
++ lib.optional cfgN.enableIPv6 "/proc/sys/net/ipv6"
|
||||
++ lib.optionals useResolvConf ([ "/run/resolvconf" ] ++ config.networking.resolvconf.subscriberFiles);
|
||||
|
@ -276,7 +277,7 @@ in
|
|||
RestrictSUIDSGID = true;
|
||||
SystemCallFilter = [
|
||||
"@system-service"
|
||||
"~@aio" "~@chown" "~@keyring" "~@memlock"
|
||||
"~@aio" "~@keyring" "~@memlock" "~@mount" "~@privileged" "~@resources"
|
||||
];
|
||||
SystemCallArchitectures = "native";
|
||||
UMask = "0027";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue