diff options
author | Pavel Moravec <pmoravec@redhat.com> | 2020-05-18 13:37:52 +0200 |
---|---|---|
committer | Jake Hunsaker <jhunsake@redhat.com> | 2020-05-19 11:38:54 -0400 |
commit | 4a5a6beef5fa986f3d36de18e086c9fc88cab549 (patch) | |
tree | 11c12c2d988f71c70d760c5f58453fe876012a0b | |
parent | fad72dbacc7e5c3c2721e452823750974ea31550 (diff) | |
download | sos-4a5a6beef5fa986f3d36de18e086c9fc88cab549.tar.gz |
[postfix] collect whole /etc/postfix
Skip just collecting some SSL stuff (not required, potentially sensitive).
Resolves: #2075
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
-rw-r--r-- | sos/report/plugins/postfix.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sos/report/plugins/postfix.py b/sos/report/plugins/postfix.py index 18fab444..4e404808 100644 --- a/sos/report/plugins/postfix.py +++ b/sos/report/plugins/postfix.py @@ -19,13 +19,18 @@ class Postfix(Plugin): def setup(self): self.add_copy_spec([ - "/etc/postfix/main.cf", - "/etc/postfix/master.cf" + "/etc/postfix/", ]) self.add_cmd_output([ 'postconf', 'mailq' ]) + # don't collect SSL keys or certs or ssl dir + self.add_forbidden_path([ + "/etc/postfix/*.key", + "/etc/postfix/*.crt", + "/etc/postfix/ssl/", + ]) class RedHatPostfix(Postfix, RedHatPlugin): @@ -44,6 +49,5 @@ class DebianPostfix(Postfix, DebianPlugin, UbuntuPlugin): def setup(self): super(DebianPostfix, self).setup() - self.add_copy_spec("/etc/postfix/dynamicmaps.cf") # vim: set et ts=4 sw=4 : |