o id @s.ddlmZmZmZmZGdddeeZdS))PluginIndependentPlugin SoSPredicate PluginOptc@s@eZdZdZdZdZeddddgZdZd Z d d Z d d Z dS) LibreswanzLibreswan IPsec libreswan)networksecurity openshift ipsec-barfFzcollect ipsec barf output)defaultdesc)/etc/ipsec.conf)ropenswancCsj|gd|gdt|ddgddid}|jdd g|d |d r,|d |gd dS)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_algokmodsall)rrequiredzip 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_specadd_cmd_outputr get_optionadd_forbidden_path)self xfrm_predr>/usr/lib/python3/dist-packages/sos/report/plugins/libreswan.pysetups   zLibreswan.setupcCs2d}|d|d|dr|d|ddSdS)Nz/(aead|auth|auth-trunc|enc)(\s.*\s)(0x[0-9a-f]+)statez \1\2********r barf)do_cmd_output_subr)rxfrm_state_regexprrrpostproc@s zLibreswan.postprocN) __name__ __module__ __qualname__ short_desc plugin_nameprofilesr option_listfilespackagesrr#rrrrrs "rN)sos.report.pluginsrrrrrrrrrs