
    -_g                     ,    d dl mZmZ  G d dee      Zy)    )PluginIndependentPluginc                   (    e Zd ZdZdZdZdZd Zd Zy)SudozSudo command executionsudo)identitysystem)r   c                    | j                  d       d}ddg}	 t        |dd      5 }|D ]6  }|j                  d      s|j                  |j	                         d	          8 	 d d d        | j                  d      s| j                  |       y | j                  |D cg c]  }| d	 c}       y # 1 sw Y   OxY w# t
        $ r!}| j                  d
| d|        Y d }~wd }~ww xY wc c}w )Nz
/etc/sudo*z/etc/sudo.confz/var/log/sudo_debugz/var/log/sudoers_debugrzUTF-8)encodingDebug   zCould not open conf file z: all_logs*)add_copy_specopen
startswithappendsplitIOError
_log_error
get_option)selfconfig_file	log_filescfilelineerrorlogs          9/usr/lib/python3/dist-packages/sos/report/plugins/sudo.pysetupz
Sudo.setup   s    <(&*,DE		(k39 :U! :Dw/!((a9:: z*y)Y?c3%q	?@: :  	(OO7}B$g' ( (	(  @s9   B> B2$B2$B> C+2B;7B> >	C(C##C(c                 .    d}| j                  d|d       y )Nz(\s*bindpw\s*)\S+z/etc/sudo-ldap.confz
\1********)do_file_sub)r   regexps     r    postproczSudo.postproc(   s    %.F    N)	__name__
__module____qualname__
short_descplugin_nameprofilespackagesr!   r%    r&   r    r   r      s"    )JK%HHA&Gr&   r   N)sos.report.pluginsr   r   r   r.   r&   r    <module>r0      s    9G6$ Gr&   