Red Hat Bugzilla – Bug 916734
need a way to exclude dirs from restorecon
Last modified: 2014-09-30 19:34:16 EDT
Description of problem: On upgrading our central log server took almost 2 hours to run restorecon as a result of an selinux policy pkg update. It would be wonderful to backport the ability to exclude relabeling of certain dirs from the fedora fixfiles to the rhel6.4 fixfiles. Background: our log server has A LOT of file in /var/log - files for every host, multiple per day, spanning back years. We'd like to not relabel all of them on each update. Try running restorecon on a massive dir with lots of files and time it. That's how long the yum process runs. Thanks!
Backported fixfiles script from Fedora Fixed in policycoreutils-2.0.83-19.31.el6 Add /var/log to /etc/selinux/fixfiles_exclude_dirs should stop fixfiles and selinux-policy updates from looking at this directory.
Is this issue really fixed? I haven't found this in Changelog, man pages nor in git commits.
Fixed in policycoreutils-2.0.83-19.33.el6
Yes, it seems to be ok to me too.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2013-1608.html