Provide submodule to security.wrappers for older kernels

Fixes a regression from #126289
This commit is contained in:
Samuel Dionne-Riel 2021-09-29 16:10:27 -04:00
parent 31ffc50c57
commit 110165b784

View File

@ -1139,10 +1139,12 @@ in
source = "${pkgs.iputils.out}/bin/ping"; source = "${pkgs.iputils.out}/bin/ping";
}; };
} else { } else {
setuid = true; ping = {
owner = "root"; setuid = true;
group = "root"; owner = "root";
source = "${pkgs.iputils.out}/bin/ping"; group = "root";
source = "${pkgs.iputils.out}/bin/ping";
};
}; };
security.apparmor.policies."bin.ping".profile = lib.mkIf config.security.apparmor.policies."bin.ping".enable (lib.mkAfter '' security.apparmor.policies."bin.ping".profile = lib.mkIf config.security.apparmor.policies."bin.ping".enable (lib.mkAfter ''
/run/wrappers/bin/ping { /run/wrappers/bin/ping {