aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLouis Bouchard <louis.bouchard@canonical.com>2013-04-04 16:39:37 +0200
committerLouis Bouchard <louis.bouchard@canonical.com>2013-04-05 12:31:46 +0200
commit1ac503392eb855286f5b9adff84a8306931b664f (patch)
tree94348b789b0e7697b9b092593acd12202a7d4528
parent04c6be946b441ad4248e91fa72dd46535c592398 (diff)
downloadsos-1ac503392eb855286f5b9adff84a8306931b664f.tar.gz
Enabled new Debian plugins & adapted to new format
-rw-r--r--sos/plugins/pam.py22
1 files changed, 20 insertions, 2 deletions
diff --git a/sos/plugins/pam.py b/sos/plugins/pam.py
index 5ebff028..e7d72bd8 100644
--- a/sos/plugins/pam.py
+++ b/sos/plugins/pam.py
@@ -12,12 +12,30 @@
## along with this program; if not, write to the Free Software
## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-from sos.plugins import Plugin, RedHatPlugin
+from sos.plugins import Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin
-class pam(Plugin, RedHatPlugin):
+class Pam(Plugin):
"""PAM related information
"""
+
+ plugin_name = "pam"
+
def setup(self):
self.add_copy_spec("/etc/pam.d")
self.add_copy_spec("/etc/security")
+
+class RedHatPam(pam, RedHatPlugin):
+ """PAM related information for RedHat based distribution
+ """
+ def setup(self):
+ super(RedHatPam, self).setup()
+
self.add_cmd_output("/bin/ls -lanF /lib*/security")
+
+class DebianPam(pam, DebianPlugin, UbuntuPlugin):
+ """PAM related information for Debian based distribution
+ """
+ def setup(self):
+ super(DebianPam, self).setup()
+
+ self.add_cmd_output("/bin/ls -lanF /lib/x86_64-linux-gnu/security")