Description of problem: When running 'fixfiles -R <packagename>' on a package with %ghost files, fixfiles will generate a line of stderr for every %ghost'ed file: /sbin/restorecon: error while labeling files under /usr/share/rpmlint/rpmlint.pyo Version-Release number of selected component (if applicable): policycoreutils-1.30.17-5 How reproducible: Always Steps to Reproduce: 1. Install rpmlint: yum install rpmlint 2. Run 'fixfiles -R rpmlint restore' Actual results: The files are relabeled but many lines of stderr are displayed that look like: /sbin/restorecon: error while labeling files under /usr/share/rpmlint/rpmlint.pyo This happens once for each file marked as a %ghost in the rpm spec file. Expected results: The files are relabeled and no output is generated. Additional info: It is pretty common to use %ghost with *.pyc and *.pyo python files. As a result, running fixfiles -R on most python packages will generate these error messages.
I forgot to mention that I had to remove the extra '-p -q' arguments to restorecon in fixfiles to get it to work on rawhide. However, the bug is still valid and has also been observed on FC5 (policycoreutils-1.30.10-2.fc5).
Fixed in policycoreutis-1.30.27-4
I didn't get a chance to test 1.30.27-4, but the problem still exists in policycoreutils-1.30.28-1 in FC-6.
This is now working correctly (without warnings) in FC6-test3 with policycoreutils-1.30.29-1