Blame SOURCES/sos-bz1638492-system-wide-crypto-policies.patch

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