Description of problem: Updating flatpack fails Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. dnf update 2. 3. Actual results: Downloading Packages: flatpak-1.12.7-1.fc36.x86_64.rpm 3.9 MB/s | 1.6 MB 00:00 ------------------------------------------------------------------------------------------------------------------------ Total 1.4 MB/s | 1.6 MB 00:01 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Running scriptlet: flatpak-1.12.7-1.fc36.x86_64 1/2 Upgrading : flatpak-1.12.7-1.fc36.x86_64 1/2 error: lsetfilecon: (/usr/libexec/flatpak-system-helper;6246e2be, system_u:object_r:flatpak_helper_exec_t:s0) Invalid argument error: Plugin selinux: hook fsm_file_prepare failed Error unpacking rpm package flatpak-1.12.7-1.fc36.x86_64 Verifying : flatpak-1.12.7-1.fc36.x86_64 1/2 Verifying : flatpak-1.12.7-1.fc35.x86_64 2/2 Expected results: update goes thru Additional info:
This is unlikely to be a dnf issue, the error takes place on rpm level but this is unlikely to be an rpm issue either as it hasn't changed at all recently. More likely something in the selinux side of things, but it needs to be tracked somewhere. What does 'rpm -q libselinux selinux-policy' say on that system?
Actually, make that 'rpm -q libselinux selinux-policy container-selinux'
rpm -q libselinux selinux-policy container-selinux libselinux-3.3-4.fc36.x86_64 libselinux-3.3-4.fc36.i686 selinux-policy-36.5-1.fc36.noarch container-selinux-2.181.0-1.fc36.noarch
Might have something to do with older version of files. Fixed with: semodule -X 200 -r snappy -r container -X 300 -r my-chown -X 400 -r my-chown -r my-systemctl dnf reinstall -y container-selinux
*** This bug has been marked as a duplicate of bug 2056303 ***