Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a test for deleting a misplaced IMA signature
RH signing server apparently does IMA signing after the normal signing has already been done, and in doing so places the IMA signatures outside the immutable region. This causes us to do all manner of wrong things, corrupting the package on --delsign and whatnot. rpmsign of course wont create such a signature by itself, so we need a pre-built "crafted" package for the purpose with a specially built rpmsign library: move the includeFileSignatures() call in rpmSign() in sign/rpmgensig.cc right after the headerReload() call, and filesign the vanilla tests/data/RPMS/hello-2.0-1.x86_64.rpm package with the --fskpath=/data/keys/privkey.pem like in the ima test above this.
- Loading branch information