diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2016-02-05 17:51:05 +0000 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2016-02-05 17:51:05 +0000 |
commit | c8197e1e231df7f71007de69a3bd362ec4f96317 (patch) | |
tree | 943d77ced77bbad998c8553547fe898e2adbc5ac | |
parent | 56614f20abb22e7e6c891fc83a9f2c9149646586 (diff) | |
download | sos-c8197e1e231df7f71007de69a3bd362ec4f96317.tar.gz |
[networking] blacklist Cisco CDP paths
Cisco CDP products include a kernel module that presents several
large pseudo files in /proc and /sys. Blacklist these locations
to avoid attempting to read the content into reports.
Fixes #740.
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r-- | sos/plugins/networking.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sos/plugins/networking.py b/sos/plugins/networking.py index 45a4c02b..dd377b49 100644 --- a/sos/plugins/networking.py +++ b/sos/plugins/networking.py @@ -128,6 +128,9 @@ class Networking(Plugin): 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") + # Cisco CDP + self.add_forbidden_path("/proc/net/cdp") + self.add_forbidden_path("/sys/net/cdp") self.add_cmd_output("ip -o addr", root_symlink="ip_addr") self.add_cmd_output("route -n", root_symlink="route") |