Description of problem: It is possible this should be against rpm so I will cc him on this report. However, since if I "setenforce 0" the problem goes away (no messages), I assume policy is involved. I have a directory structure .rpmrc and .rpmmacros so that I can build rpms as non-root ... the "safe" way (per Mike Harris stuff). I am able to build the policy rpms (policy-1.9.2-12). However, when I run the rpm -Uvh command to install the source and again when I run rpmbuild -bi for building, I get lots and lots of messages of the form: /etc/security/selinux/file_contexts: invalid context system_u:object_r:default_t on line number 39 /etc/security/selinux/file_contexts: invalid context system_u:object_r:root_t on line number 44 /etc/security/selinux/file_contexts: invalid context system_u:object_r:home_root_t on line number 53 I am attaching the redirected console logs for the rpm -Uvh and rpmbuild -bi since they are a bit large.
Created attachment 99142 [details] what I get when I run rpm -Uvh
Created attachment 99143 [details] what I get when I run rpmbuild
No this is a bug in policy. Policy needs can_getsecurity($1_t) added. I have modified policy with this change in policy-1.9.2-13 Available on people. Or in tomorrows build. Dan
OK, 1.9.2-13 fixes things and I am closing this report ... if the fix gets lost, I will reopen.