Skip to content

fix: remove stale mariadb SELinux module from local policy store - #2768

Closed
HuntedRaven7 wants to merge 1 commit into
ublue-os:mainfrom
HuntedRaven7:main
Closed

HuntedRaven7 wants to merge 1 commit into
ublue-os:mainfrom
HuntedRaven7:main

Conversation

@HuntedRaven7

Copy link
Copy Markdown
Contributor

Fixes issue 2767

The mariadb-cracklib-password-check package (pulled in by the kinoite base via akonadi-server-mysql) installs the
mariadb-plugin-cracklib-password-check SELinux module into the persistent /etc/selinux policy store. Remnants of it break ostree-finalize-staged during upgrades or rebases onto images that do not ship the package, leaving systems unable to complete updates.

Add a oneshot systemd unit which removes the module from the local policy store at boot, including stale transaction leftovers, so that switching between images with and without the package finalizes cleanly.

The mariadb-cracklib-password-check package (pulled in by the kinoite
base via akonadi-server-mysql) installs the
mariadb-plugin-cracklib-password-check SELinux module into the
persistent /etc/selinux policy store. Remnants of it break
ostree-finalize-staged during upgrades or rebases onto images that do
not ship the package, leaving systems unable to complete updates.

Add a oneshot systemd unit which removes the module from the local
policy store at boot, including stale transaction leftovers, so that
switching between images with and without the package finalizes
cleanly.

Closes ublue-os#2767
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@renner0e renner0e left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm very hesitant to the very idea of this.

This needs to be reported upstream.

@HuntedRaven7

Copy link
Copy Markdown
Contributor Author

That is a fair point, I can go do that if need be.

@renner0e

Copy link
Copy Markdown
Member

That is a fair point, I can go do that if need be.

That would be great. I'm not sure where to actually report this. Seems like ostree itself to me?

@HuntedRaven7

Copy link
Copy Markdown
Contributor Author

Uh no clue tbh it would make sense to do it there though.

@HuntedRaven7

Copy link
Copy Markdown
Contributor Author

ostreedev/ostree#3563 (comment) did a comment on a already made issue for this

@HuntedRaven7

Copy link
Copy Markdown
Contributor Author

Hey wanted to make an update! I made a pr over at ostreedev/ostree#3649

@inffy inffy closed this Sep 8, 2026
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.

Failure to upgrade due to mariadb-plugin-cracklib-password-check SELinux module

3 participants