Relocate RPM database to /usr/lib/sysimage/rpm https://fedoraproject.org/wiki/Changes/RelocateRPMToUsr#Scope Currently on Fedora 35 /usr/lib/sysimage drwxr-xr-x. 1 root root system_u:object_r:usr_t:s0 0 Jul 21 17:47 sysimage /var/lib/rpm drwxr-xr-x. 1 root root system_u:object_r:rpm_var_lib_t:s0 106 Jan 14 05:50 rpm I'm not sure what label /usr/lib/sysimage should be, but rpm inside it probably should have system_u:object_r:rpm_var_lib_t:s0
Upstream pull request: https://github.com/fedora-selinux/selinux-policy/pull/1033
Zdenek, can you please review+merge my PR and release it into Rawhide? Then I can build the new rpm with the rpmdb change...