lix/tests/nixos/root-in-sandbox/package.nix

9 lines
171 B
Nix
Raw Permalink Normal View History

{ runCommand }:
runCommand "cant-get-root-in-sandbox" {} ''
if /run/wrappers/bin/ohno; then
echo "Oh no! We're root in the sandbox!"
exit 1
fi
touch $out
''