Repository navigation
Allow package scriptlets to run in rpm_script_t - #3089
Merged
Merged
Conversation
With SELinux enforcing, kiwi_t is not allowed to transition to rpm_script_t, so every package scriptlet fails and the build aborts in the bootstrap phase. Add rpm_transition_script(), as the base policy does for other installers like anaconda_t and livecd_t. Fixes OSInside#3088 Assisted-by: Claude:claude-opus-5-5
Conan-Kudo
approved these changes
Oct 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #3088
With SELinux enforcing and kiwi running as
kiwi_t, package scriptlets fail because the switch torpm_script_tis denied:The build then aborts in the bootstrap phase.
unconfined_domain()doesn't grant this transition, so this addsrpm_transition_script(kiwi_t, kiwi_roles), the same interface the base policy uses foranaconda_t,livecd_tandinstall_t.Tested on Amazon Linux 2027 (x86_64 and aarch64) with SELinux enforcing: without the change the bootstrap fails; with it the full image build succeeds and no denials are logged.