From dc9d2128699d6c550c626f375f0d6a974426fc85 Mon Sep 17 00:00:00 2001 From: "Bryn M. Reeves" Date: Wed, 14 Aug 2013 15:59:45 +0100 Subject: Do not attempt to read use-gss-proxy file in procfs The networking plug-in scoops up /proc/net. There are some pseudo- files in here that we should avoid touching. These either have side-effects or hang the reading process. Add a forbidden path for the /proc/net/rpc/*/{channel,flush} files as these will cause side-effects for RPC applications running on the host. Forward port of commit 61585d4 on rhel-6 branch. Signed-off-by: Bryn M. Reeves --- sos/plugins/networking.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sos/plugins/networking.py b/sos/plugins/networking.py index 8d3509bb..90e1b58b 100644 --- a/sos/plugins/networking.py +++ b/sos/plugins/networking.py @@ -81,6 +81,8 @@ class Networking(Plugin): "/etc/NetworkManager/system-connections", "/etc/dnsmasq*"]) self.add_forbidden_path("/proc/net/rpc/use-gss-proxy") + self.add_forbidden_path("/proc/net/rpc/*/channel") + self.add_forbidden_path("/proc/net/rpc/*/flush") ip_addr_file=self.get_cmd_output_now("ip -o addr", root_symlink = "ip_addr") ip_addr_out=self.call_ext_prog("ip -o addr") -- cgit