HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/sos/report/plugins/__pycache__/sudo.cpython-310.pyc
o

-�_g��@s&ddlmZmZGdd�dee�ZdS)�)�Plugin�IndependentPluginc@s,eZdZdZdZdZdZdd�Zdd�Zd	S)
�SudozSudo command execution�sudo)�identity�system)rc
Cs�|�d�d}ddg}z,t|ddd��}|D]}|�d�r&|�|��d	�qWd�n1s1wYWntyT}z|�d
|�d|���WYd}~nd}~ww|�d�sa|�|�dS|�d
d�|D��dS)Nz
/etc/sudo*z/etc/sudo.confz/var/log/sudo_debugz/var/log/sudoers_debug�rzUTF-8)�encoding�Debug�zCould not open conf file z: �all_logscSsg|]}|�d��qS)�*�)�.0�logrr�9/usr/lib/python3/dist-packages/sos/report/plugins/sudo.py�
<listcomp>&szSudo.setup.<locals>.<listcomp>)�
add_copy_spec�open�
startswith�append�split�IOError�
_log_error�
get_option)�self�config_file�	log_files�cfile�line�errorrrr�setups*

�������
z
Sudo.setupcCsd}|�d|d�dS)Nz(\s*bindpw\s*)\S+z/etc/sudo-ldap.confz
\1********)�do_file_sub)r�regexprrr�postproc(sz
Sudo.postprocN)	�__name__�
__module__�__qualname__�
short_desc�plugin_name�profiles�packagesr!r$rrrrrsrN)�sos.report.pluginsrrrrrrr�<module>s