aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Moravec <pmoravec@redhat.com>2018-10-14 14:20:04 +0200
committerBryn M. Reeves <bmr@redhat.com>2018-12-12 10:27:27 +0000
commitb44d8d0f2de8fb35e98d5d171afd00945fc5036c (patch)
tree135636a7204b7918847021a12b43fdf69ff7c2da
parent1401c7153dda9bd0558035ba0692cf05a93ca419 (diff)
downloadsos-b44d8d0f2de8fb35e98d5d171afd00945fc5036c.tar.gz
[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>
-rw-r--r--sos/plugins/crypto.py10
1 files changed, 9 insertions, 1 deletions
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