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

[rhel8] libpriv/postprocess: work around semanage bug #4124

Merged
merged 1 commit into from
Nov 2, 2022

Conversation

jlebon
Copy link
Member

@jlebon jlebon commented Nov 2, 2022

There is a bug in the latest semanage code which causes an invocation of semodule --rebuild-if-modules-changed to still write a policy even though nothing changed since a full policy build. On FCOS and RHCOS, this bug is triggered as early as ostree admin deploy in cosa when creating the disk images. This results in shipping images with a policy diff baked in.

Hack around this by immediately rerunning
semodule --rebuild-if-modules-changed after building the policy.

Fixes: openshift/os#1036
(cherry picked from commit 479050e)

There is a bug in the latest semanage code which causes an invocation of
`semodule --rebuild-if-modules-changed` to still write a policy even
though nothing changed since a full policy build. On FCOS and RHCOS,
this bug is triggered as early as `ostree admin deploy` in cosa when
creating the disk images. This results in shipping images with a policy
diff baked in.

Hack around this by immediately rerunning
`semodule --rebuild-if-modules-changed` after building the policy.

Fixes: openshift/os#1036
(cherry picked from commit 479050e)
@cgwalters cgwalters merged commit 969a64b into coreos:rhel8 Nov 2, 2022
@jlebon jlebon deleted the pr/rhel8 branch April 23, 2023 23:32
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