aboutsummaryrefslogtreecommitdiff
path: root/tests/nixos/root-in-sandbox/package.nix
blob: a1069160cde3e2ec4d19a16eb3214ddb752315cf (plain)
1
2
3
4
5
6
7
8
{ 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
''