-
Notifications
You must be signed in to change notification settings - Fork 84
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
[RHELC-1117] Fix backtrace in kernel signature verification #952
Conversation
The old method we used was causing a backtrace during the fingerprint verification as it was consulting the yumdb and in return it was reporting metadata that was not relevant. This commit introduces an minimal refactor that changes the way we query for the package, so instead of relying in querying the rpmdb first, we use rpm directly to do the job. Signed-off-by: Rodolfo Olivieri <rolivier@redhat.com>
Codecov ReportAll modified lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #952 +/- ##
==========================================
- Coverage 93.99% 93.99% -0.01%
==========================================
Files 44 44
Lines 4166 4164 -2
Branches 739 739
==========================================
- Hits 3916 3914 -2
Misses 177 177
Partials 73 73
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
Sometimes lsmod was failing because it couldn't be found in the system, and since the return or execution of this function is not needed by the test result, mocking it to null value is an easy fix. Signed-off-by: Rodolfo Olivieri <rolivier@redhat.com>
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.
Changes look good to me, approved
Did anyone verify to work this in a VM? |
I did while I was developing the solution, but not sure if someone else tested it either... |
The old method we used was causing a backtrace during the fingerprint verification as it was consulting the yumdb and in return it was reporting metadata that was not relevant.
This commit introduces an minimal refactor that changes the way we query for the package, so instead of relying in querying the rpmdb first, we use rpm directly to do the job.
Jira Issues: RHELC-1117
Checklist
[RHELC-]
is part of the PR titleRelease Pending
if relevant