aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2017-08-31 16:22:23 +0100
committerBryn M. Reeves <bmr@redhat.com>2017-09-01 11:26:59 +0100
commit99518754ed8cc509915ed444b015dd9f98d3b583 (patch)
tree7b08ee81afc23918443e03dee537b59992e74c44
parent9ba2ec0ad0853531495e5cba7054741c2b4d5e50 (diff)
downloadsos-99518754ed8cc509915ed444b015dd9f98d3b583.tar.gz
[nss] add new plugin for Network Security Services libraries
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/nss.py32
1 files changed, 32 insertions, 0 deletions
diff --git a/sos/plugins/nss.py b/sos/plugins/nss.py
new file mode 100644
index 00000000..3f041227
--- /dev/null
+++ b/sos/plugins/nss.py
@@ -0,0 +1,32 @@
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License along
+# with this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+from sos.plugins import Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin
+
+
+class NSS(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
+ """Network Security Services configuration
+ """
+
+ plugin_name = "nss"
+ profiles = ('network', 'security')
+ packages = ('nss',)
+
+ def setup(self):
+ self.add_forbidden_path("/etc/pki/nssdb/cert*")
+ self.add_forbidden_path("/etc/pki/nssdb/key*")
+ self.add_forbidden_path("/etc/pki/nssdb/secmod.db")
+ self.add_copy_spec("/etc/pki/nssdb/pkcs11.txt")
+
+# vim: set et ts=4 sw=4 :