You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ostree-ext/store: Label layers of plain OCI images using booted policy
When importing layers from a plain OCI image (i.e. without `/ostree`),
right now we don't do any initial labeling. So all the real labeling
happens during the merge commit. This causes a lot of file duplication.
We'll fix that more categorically in a later patch, but as a first pass
let's at least do the initial import with _an_ SELinux policy; a natural
choice is to use the one from the booted deployment. In the common case
where we're upgrading, the policies are likely similar enough and so
this significantly reduces file duplication in the first place.
(There's also the case at install time where we're not yet in a booted
commit but may have an SELinux policy lying around; I didn't bother
trying to support that because it seems fine to be a bit less efficient
there for simpler code.)
See also #1637.
Signed-off-by: Jonathan Lebon <jonathan@jlebon.com>
0 commit comments