From b44d8d0f2de8fb35e98d5d171afd00945fc5036c Mon Sep 17 00:00:00 2001
From: Pavel Moravec <pmoravec@redhat.com>
Date: Sun, 14 Oct 2018 14:20:04 +0200
Subject: [PATCH] [crypto] collect more configs and commands
Commands:
fips-mode-setup --check
update-crypto-policies --show
update-crypto-policies --is-applied
Files:
/etc/system-fips
/etc/crypto-policies/*
Resolves: #1448
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
---
sos/plugins/crypto.py | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/sos/plugins/crypto.py b/sos/plugins/crypto.py
index df21bb3e..a9c51bb1 100644
--- a/sos/plugins/crypto.py
+++ b/sos/plugins/crypto.py
@@ -21,7 +21,15 @@ class Crypto(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
def setup(self):
self.add_copy_spec([
"/proc/crypto",
- "/proc/sys/crypto/fips_enabled"
+ "/proc/sys/crypto/fips_enabled",
+ "/etc/system-fips",
+ "/etc/crypto-policies/*"
+ ])
+
+ self.add_cmd_output([
+ "fips-mode-setup --check",
+ "update-crypto-policies --show",
+ "update-crypto-policies --is-applied"
])
# vim: et ts=4 sw=4
--
2.17.2