Description of problem: The shell script /etc/cron.daily/rpm runs every day and creates the file /var/log/rpmpkgs with the wrong type (var_log_t) instead of the correct one: rpm_log_t. This happens because the shell script creates a temporary file under /var/log/ (which is the holding tank for the "rpm -qa ..." output) and after the output is appended, the file is "moved" to rpmpkgs (thus preserving the type var_log_t as when it was created). A workaround would be to append "/sbin/restorecon /var/log/rpmpkgs" at the end of /etc/cron.daily/rpm How reproducible: Always Steps to Reproduce: 1. Run /etc/cron.daily/rpm 2. ls -lZ /var/log/rpmpkgs* Actual results: -rw-r--r-- root root user_u:object_r:var_log_t /var/log/rpmpkgs -rw-r--r-- root root system_u:object_r:rpm_log_t /var/log/rpmpkgs.1 -rw-r--r-- root root system_u:object_r:rpm_log_t /var/log/rpmpkgs.2 -rw-r--r-- root root system_u:object_r:rpm_log_t /var/log/rpmpkgs.3 -rw-r--r-- root root system_u:object_r:rpm_log_t /var/log/rpmpkgs.4 Expected results: -rw-r--r-- root root system_u:object_r:rpm_log_t /var/log/rpmpkgs -rw-r--r-- root root system_u:object_r:rpm_log_t /var/log/rpmpkgs.1 -rw-r--r-- root root system_u:object_r:rpm_log_t /var/log/rpmpkgs.2 -rw-r--r-- root root system_u:object_r:rpm_log_t /var/log/rpmpkgs.3 -rw-r--r-- root root system_u:object_r:rpm_log_t /var/log/rpmpkgs.4 Additional info: This doesn't cause any side effect on the system other than you get the warning of a mislabeld file when you run "fixfiles check".
RHEL5 is now in the development phase 2. This limits updates to critical issues only. While this issue might be annoying it is now too late to get it fixed.