From 0e467869f4d427a8c42e1c2ff6a0bb215f288b09 Mon Sep 17 00:00:00 2001 From: James Turnbull Date: Sat, 28 Feb 2009 03:05:23 +1100 Subject: Fixed #1963 - Failing to read /proc/mounts for selinux kills file downloads --- CHANGELOG | 2 ++ lib/puppet/util/selinux.rb | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 66bf08873..c9ac112a8 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,4 +1,6 @@ 0.24.8 + Fixed #1963 - Failing to read /proc/mounts for selinux kills file downloads + Fixed #2025 - gentoo service provider handle only default init level Fixed #1910 - updated logcheck diff --git a/lib/puppet/util/selinux.rb b/lib/puppet/util/selinux.rb index 70f244507..cd3b2ac1a 100644 --- a/lib/puppet/util/selinux.rb +++ b/lib/puppet/util/selinux.rb @@ -153,7 +153,9 @@ module Puppet::Util::SELinux # Internal helper function to read and parse /proc/mounts def read_mounts begin - mounts = File.read("/proc/mounts") + mountfh = File.open("/proc/mounts", NONBLOCK) + mounts = mountfh.read + mountfh.close rescue return nil end -- cgit