-
Notifications
You must be signed in to change notification settings - Fork 251
mock: disable networking in bootstrap for hermetic builds #1697
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
base: main
Are you sure you want to change the base?
mock: disable networking in bootstrap for hermetic builds #1697
Conversation
|
/packit test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request disables networking for the bootstrap phase of hermetic builds by updating the hermetic-build.cfg file. The changes set rpmbuild_networking and use_host_resolv to False for the bootstrap configuration, which is the correct approach to enforce network isolation. The change is clear, correct, and improves the hermeticity of the build process. I have no further feedback.
| mount_point = BindMountPoint(srcpath=key_dir, bindpath=chroot_dir) | ||
| bootstrap_buildroot.mounts.add(mount_point) | ||
|
|
||
| util.setup_host_resolv(bootstrap_buildroot_config) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm. But plugins and bindmountpoint will not have a functional resolv.conf.
No description provided.