-
Notifications
You must be signed in to change notification settings - Fork 58
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
ima_emulator: Support PCR hash algorithms other than SHA-1 #376
Conversation
963a5e0
to
155da11
Compare
I've only tried this with |
155da11
to
9cc824d
Compare
9cc824d
to
c5c2e2c
Compare
Note that the hashes of ToMToU errors need to be handled differently. See here: https://github.com/keylime/keylime/blob/37553151b204ace6a1b672b017486f2ed9b17ff4/keylime/ima/ast.py#L371-L376 |
I think the logic is here; I'll add a comment to be clear. |
Yes, I missed that. |
Parameters that we are currently using in tests for Python IMA emulator are |
d4cd098
to
2901cbd
Compare
Signed-off-by: Daiki Ueno <[email protected]>
1f722f0
to
51c6e50
Compare
Hi @ueno, you can now use |
85b09e5
to
995d79a
Compare
Signed-off-by: Daiki Ueno <[email protected]>
This ports the recent changes to keylime_ima_emulator in the Python stack, which allows PCR hash algorithms other than SHA-1 through the command-line options. Signed-off-by: Daiki Ueno <[email protected]>
Instalation of Rust IMA emulator has been implemented in RedHat-SP-Security/keylime-tests#141 Signed-off-by: Karel Srot <[email protected]>
995d79a
to
d0e2dd7
Compare
@kkaarreell thanks Karel, I've cherry-picked the commit. The CI is currently failing at: This code does not exist in the Python IMA emulator, but it checks sanity that the calculated hash value match the template hash in the log file. However, it never matches if That could also mean that, with that option the ToMToU measure will never trigger: Therefore I suggest using |
Hi @ueno , I have change it in RedHat-SP-Security/keylime-tests#142 |
/packit retest-failed |
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.
LGTM!
This ports the recent changes to keylime_ima_emulator in the Python
stack, which allows PCR hash algorithms other than SHA-1 through the
command-line options.
Fixes: #373
Signed-off-by: Daiki Ueno [email protected]