Skip to content
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: various fixes #283

Merged
merged 5 commits into from
Apr 19, 2022
Merged

Conversation

cgwalters
Copy link
Member

ima: Clarify that key is a path

No functional changes, it's just clearer.


ima: Only do IMA signatures, not EVM

Now, there is high alignment between ostree and EVM around ensuring
that the security xattrs are immutable/signed too; but
as I understand things, this attribute is really intended to be
machine-local.


ima: Don't overwrite existing signatures by default

A use case here is where rpm-ostree may propagate existing IMA
signatures from RPMs, but one wants to add signatures for other
files that aren't signed (for example, the RPM database and non-packaged
files).


ima: Use an ostree transaction

It's cleaner and more efficient.


No functional changes, it's just clearer.
Now, there is high alignment between ostree and EVM around ensuring
that the security xattrs are immutable/signed too; but
as I understand things, this attribute is really intended to be
machine-local.
A use case here is where rpm-ostree may propagate existing IMA
signatures from RPMs, but one wants to add signatures for other
files that aren't signed (for example, the RPM database and non-packaged
files).
It's cleaner and more efficient.
Change the mapping function to be "pure" and not have side
effects on a cache, moving the cache mutation outside.  Prep for
possible parallelization.
@cgwalters cgwalters merged commit 77600ca into ostreedev:main Apr 19, 2022
cgwalters added a commit to cgwalters/ostree that referenced this pull request Apr 21, 2022
Now that the fixed code for `ima-sign` landed in
ostreedev/ostree-rs-ext#283
cgwalters added a commit to cgwalters/ostree that referenced this pull request Oct 11, 2022
Now that the fixed code for `ima-sign` landed in
ostreedev/ostree-rs-ext#283
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants