3
0
Fork 0
forked from mirrors/nixpkgs

nixos/tests/systemd-networkd-ipv6-prefix-delegation: fix wrapper

The owner,group options are mandatory after #126289.
This commit is contained in:
rnhmjoj 2021-09-22 12:40:03 +02:00
parent b53a5b91b9
commit c744ecb69f
No known key found for this signature in database
GPG key ID: BFBAF4C975F76450

View file

@ -42,6 +42,8 @@ import ./make-test-python.nix ({pkgs, ...}: {
# DO NOT COPY THIS TO PRODUCTION AS IS. Think about it at least twice. # DO NOT COPY THIS TO PRODUCTION AS IS. Think about it at least twice.
# Everyone on the "isp" machine will be able to add routes to the kernel. # Everyone on the "isp" machine will be able to add routes to the kernel.
security.wrappers.add-dhcpd-lease = { security.wrappers.add-dhcpd-lease = {
owner = "root";
group = "root";
source = pkgs.writeShellScript "add-dhcpd-lease" '' source = pkgs.writeShellScript "add-dhcpd-lease" ''
exec ${pkgs.iproute2}/bin/ip -6 route replace "$1" via "$2" exec ${pkgs.iproute2}/bin/ip -6 route replace "$1" via "$2"
''; '';