puppetlabs/puppet — pull request #3043 by peiriannydd (2014-09-03 02:16:22+00:00)
Title: Optimize the read of the system mounts in selinux

Util::SELinux currently reads /proc/mounts for each file in the system.

This can cause a massive lag/burden on the system especially if the
system uses a great number of mount entries (such as OpenShift).

However, this is not a great patch since it creates a global variable
insted of using whatever global caching mechanism that Puppet may have
internally.

Submitting for review but hoping for improvement.