Bugzilla – Bug 1213593
SELinux: adjust rpm macros for SUSE paths
Last modified: 2024-06-06 10:40:08 UTC
https://github.com/rancher/rke2-selinux/issues/46 the issue is that /usr/lib/rpm/macros.d/macros.selinux-policy uses a directory that isn't present on SUSE systems
SUSE-RU-2023:3003-1: An update that has one recommended fix can now be installed. Category: recommended (moderate) Bug References: 1213593 Sources used: SUSE Linux Enterprise Micro for Rancher 5.4 (src): selinux-policy-20230511+git3.b78f5aff-150400.4.9.1 SUSE Linux Enterprise Micro 5.4 (src): selinux-policy-20230511+git3.b78f5aff-150400.4.9.1 openSUSE Leap Micro 5.4 (src): selinux-policy-20230511+git3.b78f5aff-150400.4.9.1 NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
fixed
This bug seems to have been overlooked in previous versions... SLE-Micro 5.3 gives the exact same error using both 0.12 and 0.14... Retrieving: rke2-selinux-0.14-1.slemicro.noarch (Plain RPM files cache) (1/3), 20.5 KiB (1/3) Installing: rke2-selinux-0.14-1.slemicro.noarch [.. cp: cannot create regular file '/var/lib/rpm-state/file_contexts.pre': No such file or directory error: %prein(rke2-selinux-0.14-1.slemicro.noarch) scriptlet failed, exit status 1 error: rke2-selinux-0.14-1.slemicro.noarch: install failed error] Installation of rke2-selinux-0.14-1.slemicro.noarch failed: Error: Subprocess failed. Error: RPM failed: Command exited with status 1. Attempted to do both 0.14 and 0.12 and 0.12 had the same issue.
I just submitted this for SLE-Micro 5.3, but this will not fix the issue. The core problem is that rk2-selinux is build on Centos and therefor uses their macros. This must be changed so that this builds on SLE Micro, because this will cause further issues down the road.
SUSE-RU-2023:3334-1: An update that has one recommended fix can now be installed. Category: recommended (moderate) Bug References: 1213593 Sources used: SUSE Linux Enterprise Micro for Rancher 5.3 (src): selinux-policy-20210716-150400.5.3.1 SUSE Linux Enterprise Micro 5.3 (src): selinux-policy-20210716-150400.5.3.1 openSUSE Leap Micro 5.3 (src): selinux-policy-20210716-150400.5.3.1 NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.