Skip to content

cfs/finalize: Rebuild selinux policy on finalize - #2686

Open
Johan-Liebert1 wants to merge 2 commits into
bootc-dev:mainfrom
Johan-Liebert1:composefs-selinux-recomp
Open

Johan-Liebert1 wants to merge 2 commits into
bootc-dev:mainfrom
Johan-Liebert1:composefs-selinux-recomp

Conversation

@Johan-Liebert1

@Johan-Liebert1 Johan-Liebert1 commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

cfs/finalize: Rebuild selinux policy on finalize

If the local SeLinux policy has changed then rebuild the final SeLinux
policy on staged deployment finalization, otherwise we might end up
overwriting incoming SeLinux updates.

Closes: #2511


tmt: Add tests for selinux policy update

Not enabled for UKI currently. See #2704

@Johan-Liebert1
Johan-Liebert1 requested review from cgwalters and jmarrero and a balanced review from Copilot November 24, 2026 10:33

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@Johan-Liebert1

Johan-Liebert1 commented Nov 25, 2026 •

Copy link
Copy Markdown
Member Author

Some weird failures on c10s. The same tests pass locally. Re-ran

Edit: Was an issue with chroot PATH env. Fixed

@Johan-Liebert1
Johan-Liebert1 force-pushed the composefs-selinux-recomp branch from 178e032 to d40afd7 Compare November 25, 2026 10:49
@Johan-Liebert1

Copy link
Copy Markdown
Member Author

@Johan-Liebert1

Copy link
Copy Markdown
Member Author

The issue arises because bootc container ukify reads from the constructed overlay, while when pulling the actual repo, we read from the tar archives which causes the inconsistency with mtimes

If the local SeLinux policy has changed then rebuild the final SeLinux
policy on staged deployment finalization, otherwise we might end up
overwriting incoming SeLinux updates.

Closes: bootc-dev#2511

Signed-off-by: Pragyan Poudyal <[email protected]>
Not enabled for UKI currently. See bootc-dev#2704

Signed-off-by: Pragyan Poudyal <[email protected]>
@Johan-Liebert1
Johan-Liebert1 force-pushed the composefs-selinux-recomp branch from d40afd7 to 634b5b7 Compare November 30, 2026 09:18

This branch has not been deployed

No deployments
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.

composefs: Add selinux policy finalization

2 participants