-
Bug
-
Resolution: Not a Bug
-
Undefined
-
None
-
rhel-10.2
-
None
-
None
-
rhel-security-selinux
-
None
-
False
-
False
-
-
None
-
None
-
None
-
None
-
Unspecified
-
Unspecified
-
Unspecified
-
None
Hi, I discovered following error logs when running post-install scriptlet:
Running scriptlet: rhc-1:0.3.4-1.el10.x86_64 492/1176 Problems processing filecon rules Failed post db handling Post process failed OSError: Error
Based on errors, I expect it's following command:
/usr/sbin/semanage permissive --add rhcd_t || true
To reproduce:
- install rhel 9 system
- dnf install leapp-upgrade
- leapp upgrade --debug # eventually --no-rhsm if upgrading with custom repositories
- check upgrade logs
Update: I've discovered that number of semanage commands fails during the upgrade which for sure should not be failing:
[root@localhost ~]# grep -EA4 "Error installing module" /var/log/leapp/leapp-upgrade.log 2026-02-09 09:50:23.34 WARNING PID: 948 leapp.workflow.Applications.selinuxapplycustom: Error installing modules in a single transaction:Problems processing filecon rules Failed post db handling Post process failed semodule: Failed! -- 2026-02-09 09:50:25.822 WARNING PID: 948 leapp.workflow.Applications.selinuxapplycustom: Error installing module: Problems processing filecon rules Failed post db handling Post process failed semodule: Failed! -- Feb 09 08:50:23 localhost upgrade[37114]: 2026-02-09 09:50:23.34 WARNING PID: 948 leapp.workflow.Applications.selinuxapplycustom: Error installing modules in a single transaction:Problems processing filecon rules Feb 09 08:50:23 localhost upgrade[37114]: Failed post db handling Feb 09 08:50:23 localhost upgrade[37114]: Post process failed Feb 09 08:50:23 localhost upgrade[37114]: semodule: Failed! Feb 09 08:50:23 localhost upgrade[37114]: Retrying -- now each module will be installed separately. -- Feb 09 08:50:25 localhost upgrade[37114]: 2026-02-09 09:50:25.822 WARNING PID: 948 leapp.workflow.Applications.selinuxapplycustom: Error installing module: Problems processing filecon rules Feb 09 08:50:25 localhost upgrade[37114]: Failed post db handling Feb 09 08:50:25 localhost upgrade[37114]: Post process failed Feb 09 08:50:25 localhost upgrade[37114]: semodule: Failed! Feb 09 08:50:25 localhost upgrade[37114]: 2026-02-09 09:50:25.823 INFO PID: 948 leapp.workflow.Applications.selinuxapplycustom: Importing the following SELinux customizations collected by "semanage export":