Sindbad~EG File Manager

Current Path : /lib/python3.6/site-packages/sos/report/plugins/__pycache__/
Upload File :
Current File : //lib/python3.6/site-packages/sos/report/plugins/__pycache__/libreswan.cpython-36.opt-1.pyc

3

�f�	�@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

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists