-
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
Split crates into library and applications #481
Conversation
6a6c69b
to
ad90229
Compare
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.
[Seems that the tests fail because of the shim.py move]
ca2f5e3
to
a1e125e
Compare
I've reverted that change (btw: I would put shim.py in dist/ instead of tests/ as it is installed), though the tests are still failing because they modify the source code. |
Ah that is unfortunate ... I wonder what can be the correct approach here. One can be fork the keylime-tests to adapt the tests and add in the PR the address of the forked repo (I think that I saw this approach in other PR) Another one is compile the agent as debug when testing, and adding a |
233096d
to
1968a66
Compare
I also tried to move |
Thanks for working on this! I think it makes sense to follow this incremental approach and progressively move the code out of the agent and into the library.
About the failing test, maybe we could use a branch while we don't have a way to configure the measured boot log path. @kkaarreell Could TMT dynamic reference help us here? |
I think I have all the required changes in RedHat-SP-Security/keylime-tests#275 |
Suggested by Karel Srot in: keylime#481 (comment) Signed-off-by: Daiki Ueno <[email protected]>
1968a66
to
69f1f70
Compare
Suggested by Karel Srot in: keylime#481 (comment) Signed-off-by: Daiki Ueno <[email protected]>
69f1f70
to
1b995e1
Compare
Suggested by Karel Srot in: keylime#481 (comment) Signed-off-by: Daiki Ueno <[email protected]>
1b995e1
to
ef081af
Compare
This is a start of refactoring the codebase into three sub-crates: keylime, keylime_agent, and keylime_ima_emulator. The keylime crate provides common facility used by the other crates as a library (currently only IMA parser). Signed-off-by: Daiki Ueno <[email protected]>
Suggested by Karel Srot in: keylime#481 (comment) Signed-off-by: Daiki Ueno <[email protected]>
ef081af
to
b6f8100
Compare
Suggested by Karel Srot in: keylime#481 (comment) Signed-off-by: Daiki Ueno <[email protected]>
b6f8100
to
dc50106
Compare
Suggested by Karel Srot in: keylime#481 (comment) Signed-off-by: Daiki Ueno <[email protected]>
dc50106
to
a352e52
Compare
Suggested by Karel Srot in: keylime#481 (comment) Signed-off-by: Daiki Ueno <[email protected]>
a352e52
to
5901532
Compare
Suggested by Karel Srot in: keylime#481 (comment) Signed-off-by: Daiki Ueno <[email protected]>
5901532
to
768c99a
Compare
Thank you! I'm assuming that you meant |
Right, of course, sorry for that. |
Signed-off-by: Daiki Ueno <[email protected]>
Suggested by Karel Srot in: keylime#481 (comment) Signed-off-by: Daiki Ueno <[email protected]>
768c99a
to
512abff
Compare
I have merged the test update. You can restore original reference |
Signed-off-by: Daiki Ueno <[email protected]>
512abff
to
9229c8c
Compare
Thanks; done and merged. |
This is a start of refactoring the codebase into three sub-crates: keylime, keylime_agent, and keylime_ima_emulator. The keylime crate provides common facility used by the other crates as a library (currently only IMA parser).
Signed-off-by: Daiki Ueno [email protected]