HEX
Server: Apache/2.4.62 (Unix) OpenSSL/1.1.1k
System: Linux ns565604.ip-54-39-133.net 4.18.0-553.50.1.el8_10.x86_64 #1 SMP Tue Apr 15 08:09:22 EDT 2025 x86_64
User: greer489 (1034)
PHP: 8.3.19
Disabled: NONE
Upload Files
File: //lib/python3.6/site-packages/sos/report/plugins/__pycache__/libreswan.cpython-36.opt-1.pyc
3

-�_g�	�@s.ddlmZmZmZmZGdd�dee�ZdS)�)�Plugin�IndependentPlugin�SoSPredicate�	PluginOptc@s@eZdZdZdZdZedddd	�gZdZdZ	dd
�Z
dd�ZdS)�	LibreswanzLibreswan IPsec�	libreswan�network�security�	openshiftz
ipsec-barfFzcollect ipsec barf output)�defaultZdesc�/etc/ipsec.conf�openswancCst|jdddg�|jddddg�t|dd	gd
did�}|jd
dg|d�|jd�r^|jd�|jddddg�dS)Nz/etc/ipsec.confz/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)Zpredz
ipsec-barfz
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.6/libreswan.py�setups,


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