This is a feature request: rpm -V shows me that the security context of some files differs between the installed file and the stored information in the rpm database. To have a look at these problems I want to compare the security context. For the installed files I can use ls -Z, but I didn't found a way to display the security context of the rpm database with rpm -qlv. I've already looked into the source of rpm and it seems, that this function is just not implemented. I'm not sure whether this is the correct place to report such problems. If it is not, please redirect me. :-) Thx.
The difference is between what policy is configured and what is in xattr's on the file system. No security context information comes from the rpmdb. In fact, rpm should not be attempting to compare information for which no authoritative (what happens to be installed through policy-of-the-day is not authoritative) reference copy of policy exists.