Merge pull request #240295 from sysvinit/sysvinit/udev-privacy-address-scope

network-interfaces: restrict ipv6 udev rules
This commit is contained in:
Michele Guerini Rocco 2023-07-06 18:03:36 +02:00 committed by GitHub
commit d0b4889418
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1496,7 +1496,7 @@ in
in
''
# override to ${msg} for ${i.name}
ACTION=="add", SUBSYSTEM=="net", RUN+="${pkgs.procps}/bin/sysctl net.ipv6.conf.${replaceStrings ["."] ["/"] i.name}.use_tempaddr=${val}"
ACTION=="add", SUBSYSTEM=="net", NAME=="${i.name}", RUN+="${pkgs.procps}/bin/sysctl net.ipv6.conf.${replaceStrings ["."] ["/"] i.name}.use_tempaddr=${val}"
'') (filter (i: i.tempAddress != cfg.tempAddresses) interfaces);
})
] ++ lib.optional (cfg.wlanInterfaces != {})