Hide Forgot
If the kernel claims to support a newer policy version than the userspace toolchain the rpmbuild will fail. In my case kernel supports policy.25 but userspace only supports policy.24. The error when it bails out is: Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.bO7L16 + umask 022 + cd /root/rpmbuild/BUILD + cd serefpolicy-3.9.15 + unset DISPLAY + /usr/sbin/selinuxenabled + /usr/bin/sepolgen-ifgen -i /root/rpmbuild/BUILDROOT/selinux-policy-3.9.15-2.fc15.1.eparis.x86_64/usr/share/selinux/devel/include -o /dev/null Can't open '/etc/selinux/targeted/policy/policy.25': No such file or directory could not run attribute helpererror: Bad exit status from /var/tmp/rpm-tmp.bO7L16 (%check) You COULD make it try back to policy.24 policy.23 etc, but that is just total crap. The state of the running system should be COMPLETELY independent of the build process. Just give me my built RPM and stop looking at my running system!
/policycoreutils-2.0.85-20.fc15