a >h@s&ddlmZmZGdddeeZdS))PluginIndependentPluginc@s,eZdZdZdZdZdZddZddZd S) SudozSudo command executionsudo)identitysystem)rc Cs|dd}ddg}zXt|ddd6}|D] }|dr,||d q,Wdn1sb0YWn:ty}z"|d |d |WYd}~n d}~00|d s||n|d d|DdS)Nz /etc/sudo*z/etc/sudo.confz/var/log/sudo_debugz/var/log/sudoers_debugrzUTF-8)encodingZDebugzCould not open conf file z: Zall_logscSsg|]}|dqS)*).0logr r ;/usr/lib/python3.9/site-packages/sos/report/plugins/sudo.py &zSudo.setup..)Z add_copy_specopen startswithappendsplitIOErrorZ _log_errorZ get_option)selfZ config_fileZ log_filescfilelineerrorr r rsetups  6   z Sudo.setupcCsd}|d|ddS)Nz(\s*bindpw\s*)\S+z/etc/sudo-ldap.confz \1********)Z do_file_sub)rZregexpr r rpostproc(sz Sudo.postprocN) __name__ __module__ __qualname__Z short_descZ plugin_nameZprofilesZpackagesrrr r r rrs rN)Zsos.report.pluginsrrrr r r r s