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

Run build in chroot #5

Open
zopsicle opened this issue Nov 29, 2019 · 0 comments
Open

Run build in chroot #5

zopsicle opened this issue Nov 29, 2019 · 0 comments

Comments

@zopsicle
Copy link
Owner

Builds should run in chroots such that pwd is always the same. This makes it harder to create non-reproducible builds. This is significant for example when using compilers that use absolute paths to source files for name mangling, such as patscc.

This requires some work:

  • Set up a user namespace so we can set up a mount namespace.
  • Set up a mount namespace so we can bind mount.
  • Bind mount /dev, /proc, /bin/sh, /usr/bin/env, /nix/store, and possibly more.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant