o
    O6ufB  ã                   @   sR   d dl mZmZmZmZ G dd„ deƒZG dd„ deeƒZG dd„ deeeƒZdS )	é    )ÚPluginÚRedHatPluginÚDebianPluginÚUbuntuPluginc                   @   s(   e Zd ZdZdZdZdZdZdd„ ZdS )	ÚPamz Pluggable Authentication ModulesÚpam)ÚsecurityÚidentityÚsystem)zpam_.*Ú c                 C   s:   |   dddœ¡ |  ddg¡ |  d| j› �ddg¡ d S )	NÚpassword_authÚlimits_conf)z/etc/pam.d/password-authz/etc/security/limits.*.confz
/etc/pam.dz/etc/securityz	ls -lanF Ú
pam_tally2Úfaillock)Úadd_file_tagsÚadd_copy_specÚadd_cmd_outputÚsecurity_libs©Úself© r   ú8/usr/lib/python3/dist-packages/sos/report/plugins/pam.pyÚsetup   s   þþ

ýz	Pam.setupN)	Ú__name__Ú
__module__Ú__qualname__Ú
short_descÚplugin_nameÚprofilesÚverify_packagesr   r   r   r   r   r   r      s    r   c                       s    e Zd ZdZ‡ fdd„Z‡  ZS )Ú	RedHatPamz/lib*/securityc                    s   t ƒ  ¡  |  dg¡ d S )Nzauthselect current)Úsuperr   r   r   ©Ú	__class__r   r   r   *   s   
zRedHatPam.setup)r   r   r   r   r   Ú__classcell__r   r   r"   r   r    '   s    r    c                   @   s   e Zd ZdZdS )Ú	DebianPamz/lib/x86_64-linux-gnu/securityN)r   r   r   r   r   r   r   r   r%   /   s    r%   N)Úsos.report.pluginsr   r   r   r   r   r    r%   r   r   r   r   Ú<module>   s   