Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tmpdir audit: only fail with files referenced below #35068

Merged
merged 1 commit into from Nov 16, 2018

Conversation

zimbatm
Copy link
Member

@zimbatm zimbatm commented Feb 17, 2018

Motivation for this change

On Linux the $TMPDIR is /build. The TMPDIR audit looks for $TMPDIR
in the build output, which will then fail with packages like
/buildkite-agent.

This fixes the heuristic to look for $TMPDIR/ instead.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

@zimbatm zimbatm changed the base branch from master to staging February 24, 2018 19:54
On Linux the `$TMPDIR` is `/build`. The TMPDIR audit looks for `$TMPDIR`
in the build output, which will then fail with packages like
/buildkite-agent.

This fixes the heuristic to look for `$TMPDIR/` instead.
@zimbatm zimbatm merged commit 551aecf into NixOS:staging Nov 16, 2018
@zimbatm zimbatm deleted the stricted-tmpdir-audit branch November 16, 2018 21:36
dtzWill added a commit to dtzWill/nixpkgs that referenced this pull request Nov 16, 2018
dtzWill added a commit to dtzWill/nixpkgs that referenced this pull request Nov 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants