Implement a way to ensure build artifacts integrity after the %build
, and during post-build phases like %check
#3009
Replies: 6 comments 3 replies
-
Yeah, it would be interesting for sure. |
Beta Was this translation helpful? Give feedback.
-
Is this project the right place to put this discussion and make an issue? Should it be This discussion could be used to see first how to implement this best. The |
Beta Was this translation helpful? Give feedback.
-
Another option can be as simple as backing up the entire directory prior to Perhaps, this can be implemented with a macro to start getting something going: |
Beta Was this translation helpful? Give feedback.
-
We've been entertaining ideas to this direction before the xz incident, eg #2985 (for read-only source) and #2989. Read-only buildroot would be a logical extension of this. Some of these things are stepping into "mock territory", but then people still do run rpmbuild through other means as well, including directly. And extra layer of protection rarely hurts. |
Beta Was this translation helpful? Give feedback.
-
After the build artifacts are created, it would be ideal to somehow make them immutable during the test in the %check. The goal is to protect their integrity.
This idea came from the Fedora devel discussion about how to build defense mechanisms against xz kind of backdoors.
Ideas of how to implement it:
Zbyszek:
Neal Gompa:
Beta Was this translation helpful? Give feedback.
All reactions