Ë
    i©¹dæ	  ã                   ó4   — d dl mZmZmZmZ  G d„ dee«      Zy)é    )ÚPluginÚIndependentPluginÚSoSPredicateÚ	PluginOptc                   óD   — e Zd ZdZdZdZ eddd¬«      gZdZd	Z	d
„ Z
d„ Zy)Ú	LibreswanzLibreswan IPsecÚ	libreswan)ÚnetworkÚsecurityÚ	openshiftú
ipsec-barfFzcollect ipsec barf output)ÚdefaultÚdesc)ú/etc/ipsec.conf)r	   Úopenswanc                 ó  — | j                  g d¢«       | j                  g d¢«       t        | ddgddi¬«      }| j                  dd	g|¬
«       | j                  d«      r| j                  d«       | j	                  g d¢«       y )N)r   z/etc/ipsec.dz/proc/net/xfrm_stat)zipsec verifyzipsec whack --statuszipsec whack --listallzcertutil -L -d sql:/etc/ipsec.dÚ	xfrm_userÚ	xfrm_algoÚkmodsÚall)r   Úrequiredzip 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ÚsetupzLibreswan.setup   s™   € Ø×Ñò 
ô 	ð 	×Ñò 
ô 	ô ! ¨k¸;Ð-GØ+2°EÐ*:ô<ˆ	à×ÑØØð
ð ð 	ô 	ð
 �?‰?˜<Ô(Ø×Ñ Ô-à×Ñò !
õ 	ó    c                 óx   — d}| j                  d|d«       | j                  d«      r| j                  d|d«       y y )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   ÚpostproczLibreswan.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!   r   r   r      s>   „ à"€Jà€KØ3€Há�,¨Ø2ô	4ð€Kð
 !€EØ(€Hò óD4r!   r   N)Úsos.report.pluginsr   r   r   r   r   r1   r!   r   ú<module>r3      s   ð÷+ó +ô;4�Ð)õ ;4r!   