-
Notifications
You must be signed in to change notification settings - Fork 56
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
Adding "mutable log paths" feature #665
Conversation
As mentioned above, please do not merge yet -- this is a trial balloon to see how many testing features I run afoul in one try. Also, the implementation is incomplete: the feature discussed in Issue #657 , info logging nonstandard log paths, is not yet implemented. |
Codecov ReportAttention:
Additional details and impacted files
Flags with carried forward coverage won't be shown. Click here to find out more.
|
012c66b
to
5e73835
Compare
@ansasaki @kkaarreell I do not believe I can improve the rust agent code in this PR anymore. I have been laboring under a misunderstanding of how rust agent testing is performed. I have created this one-line [PR] (RedHat-SP-Security/keylime-tests#498) in Note that the (a) the testing harness should be updated to compile the rust agent correctly by using cargo with the |
This looks like a leftover. It should use the approach EDIT: BTW, the |
I closed RedHat-SP-Security/keylime-tests#498 in the expectation that RedHat-SP-Security/keylime-tests#499 will solve this problem. Will force a re-test as soon as 499 is merged. |
@galmasi Hi, is there anything blocking you here that I can help you with? |
911ef9b
to
048f6c0
Compare
I'll take another look at all the changes I have made and try to reconcile. I have rebased to the current master, but there are a number of thinking errors that I need to address: chief among them, |
5a05030
to
899cdf8
Compare
@@ -515,6 +532,14 @@ impl Source for KeylimeConfig { | |||
"agent_data_path".to_string(), | |||
self.agent.agent_data_path.to_string().into(), | |||
); | |||
_ = m.insert( |
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.
So many _
seems a bit ugly. I wonder if this can help: rust-lang/rfcs#3092
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.
Thanks for the pointer, but unfortunately we cannot use this (yet). It is still available only on nightly:
https://doc.rust-lang.org/std/collections/struct.HashMap.html#method.try_insert
Hi @galmasi, I took the liberty to make the formatting changes and rebase. I'd like to ask if I can also add the configuration change required (in the case, include the new configuration options and bump the version) EDIT: we will also need to update the templates in the python side and bump the version there. If possible, we should do both before @maugustosilva creates the new tag for the monthly release. |
…ylime configuration. Signed-off-by: George Almasi <gheorghe@us.ibm.com> Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
This introduces the 'ima_ml_path' and 'measuredboot_ml_path' options to set the IMA measurement log and Measured Boot event log, respectively. This also bumps the configuration version to 2.2 as new options were added. Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
I'll squash some commits and rebase. Note that I added a commit to add the new configuration options. |
b36af2a
to
f56bd27
Compare
As discussed in Issue #657 -- initial commit for implementing configurable logging paths