HOME


Mini Shell 1.0
DIR: /lib/python3/dist-packages/sos/report/plugins/__pycache__/
Upload File :
Current File : //lib/python3/dist-packages/sos/report/plugins/__pycache__/libreswan.cpython-312.pyc
�

i��d�	��4�ddlmZmZmZmZGd�dee�Zy)�)�Plugin�IndependentPlugin�SoSPredicate�	PluginOptc�D�eZdZdZdZdZeddd��gZdZd	Z	d
�Z
d�Zy)
�	LibreswanzLibreswan IPsec�	libreswan)�network�security�	openshift�
ipsec-barfFzcollect ipsec barf output)�default�desc)�/etc/ipsec.conf)r	�openswanc��|jgd��|jgd��t|ddgddi��}|jdd	g|�
�|jd�r|jd�|j	gd
��y)N)rz/etc/ipsec.dz/proc/net/xfrm_stat)zipsec verifyzipsec whack --statuszipsec whack --listallzcertutil -L -d sql:/etc/ipsec.d�	xfrm_user�	xfrm_algo�kmods�all)r�requiredzip xfrm policyz
ip xfrm state)�predr
z
ipsec barf)z/etc/ipsec.secretsz/etc/ipsec.secrets.dz/etc/ipsec.d/*.dbz/etc/ipsec.d/*.secrets)�
add_copy_spec�add_cmd_outputr�
get_option�add_forbidden_path)�self�	xfrm_preds  �>/usr/lib/python3/dist-packages/sos/report/plugins/libreswan.py�setupzLibreswan.setups������
�	�	
���
�	�!��k�;�-G�+2�E�*:�<�	������
��	�	�
�?�?�<�(�����-����!
�	�c�x�d}|jd|d�|jd�r|jd|d�yy)Nz/(aead|auth|auth-trunc|enc)(\s.*\s)(0x[0-9a-f]+)�statez\1\2********r
�barf)�do_cmd_output_subr)r�xfrm_state_regexps  r�postproczLibreswan.postproc@sI��5�����w�(9�.�	0��?�?�<�(��"�"�6�+<�#2�
4�)r!N)�__name__�
__module__�__qualname__�
short_desc�plugin_name�profilesr�option_list�files�packagesr r'�r!rrrs>��"�J��K�3�H��,��2�	4��K�

!�E�(�H� �D4r!rN)�sos.report.pluginsrrrrrr1r!r�<module>r3s��+�+�;4��)�;4r!