HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib/python3/dist-packages/sos/report/plugins/__pycache__/libreswan.cpython-38.pyc
U

i��d�	�@s.ddlmZmZmZmZGdd�dee�ZdS)�)�Plugin�IndependentPlugin�SoSPredicate�	PluginOptc@s@eZdZdZdZdZedddd�gZdZd	Z	d
d�Z
dd
�ZdS)�	LibreswanzLibreswan IPsec�	libreswan)ZnetworkZsecurityZ	openshift�
ipsec-barfFzcollect ipsec barf output)�defaultZdesc)�/etc/ipsec.conf)rZopenswancCst|�dddg�|�ddddg�t|dd	gd
did�}|jd
dg|d�|�d�r^|�d�|�ddddg�dS)Nr
z/etc/ipsec.dz/proc/net/xfrm_statzipsec verifyzipsec whack --statuszipsec whack --listallzcertutil -L -d sql:/etc/ipsec.dZ	xfrm_userZ	xfrm_algo�kmods�all)rZrequiredzip xfrm policyz
ip xfrm state)Zpredrz
ipsec barfz/etc/ipsec.secretsz/etc/ipsec.secrets.dz/etc/ipsec.d/*.dbz/etc/ipsec.d/*.secrets)Z
add_copy_specZadd_cmd_outputr�
get_optionZadd_forbidden_path)�selfZ	xfrm_pred�r�>/usr/lib/python3/dist-packages/sos/report/plugins/libreswan.py�setups8��
���

�zLibreswan.setupcCs.d}|�d|d�|�d�r*|�d|d�dS)Nz/(aead|auth|auth-trunc|enc)(\s.*\s)(0x[0-9a-f]+)�statez\1\2********rZbarf)Zdo_cmd_output_subr
)rZxfrm_state_regexprrr�postproc@s�
�zLibreswan.postprocN)�__name__�
__module__�__qualname__Z
short_descZplugin_nameZprofilesrZoption_list�filesZpackagesrrrrrrrs��"rN)Zsos.report.pluginsrrrrrrrrr�<module>s