effc28f6f5
Change-Id: I711f64e2b68495ed9c85c1a4bd5025405805e43a
15 lines
392 B
Nix
15 lines
392 B
Nix
let
|
|
inherit (import ../util.nix) mkNixBuildTest;
|
|
in mkNixBuildTest {
|
|
name = "root-in-sandbox";
|
|
extraMachineConfig = { pkgs, ... }: {
|
|
security.wrappers.ohno = {
|
|
owner = "root";
|
|
group = "root";
|
|
setuid = true;
|
|
source = "${pkgs.coreutils}/bin/whoami";
|
|
};
|
|
nix.settings.extra-sandbox-paths = ["/run/wrappers/bin"];
|
|
};
|
|
expressionFile = ./package.nix;
|
|
}
|