Revonzy Mini Shell

Revonzy Mini Shell

Şuanki Dizin: /lib64/python3.9/site-packages/setools/diff/__pycache__/
Dosya Yükle :
Şuanki Dosya : //lib64/python3.9/site-packages/setools/diff/__pycache__/ibpkeycon.cpython-39.pyc

a

q�qe^
�@s|ddlmZddlmZmZddlmZddlmZddl	m
Z
mZGdd	�d	e�ZGd
d�de
�Z
Gdd
�d
ee�ZdS)�)�
NamedTuple�)�Context�	Ibpkeycon�)�ContextWrapper)�DiffResultDescriptor)�
Difference�Wrapperc@s*eZdZUdZeed<eed<eed<dS)�ModifiedIbpkeyconz,Difference details for a modified ibpkeycon.ZruleZ
added_contextZremoved_contextN)�__name__�
__module__�__qualname__�__doc__r�__annotations__r�rr�</usr/lib64/python3.9/site-packages/setools/diff/ibpkeycon.pyrs
rc@sDeZdZdZed�Zed�Zed�Zdd�dd�Zdd�dd�Z	dS)	�IbpkeyconsDifferencez<Determine the difference in ibpkeycons between two policies.�diff_ibpkeyconsN)�returncCs�|j�d�|��|�dd�|j��D�dd�|j��D��\|_|_}g|_	|D]4\}}t
|j�t
|j�krR|j	�t
||j|j��qRdS)z;Generate the difference in ibpkeycons between the policies.zIGenerating ibpkeycon differences from {0.left_policy} to {0.right_policy}css|]}t|�VqdS�N��IbpkeyconWrapper��.0�nrrr�	<genexpr>(�z7IbpkeyconsDifference.diff_ibpkeycons.<locals>.<genexpr>css|]}t|�VqdSrrrrrrr)rN)�log�info�formatZ	_set_diffZleft_policyZ
ibpkeyconsZright_policy�added_ibpkeycons�removed_ibpkeycons�modified_ibpkeyconsr�context�appendr)�selfZmatched_ibpkeyconsZleft_ibpkeyZright_ibpkeyrrrrs �����z$IbpkeyconsDifference.diff_ibpkeyconscCs"|j�d�d|_d|_d|_dS)z%Reset diff results on policy changes.zResetting ibpkeycon differencesN)r�debugr!r"r#�r&rrr�_reset_diff7sz IbpkeyconsDifference._reset_diff)
rr
rrrr!r"r#rr)rrrrrsrc@s<eZdZdZdZedd�dd�Zdd�Zd	d
�Zdd�Z	dS)
rz,Wrap ibpkeycon statements for diff purposes.��
subnet_prefix�low�highN)�oconrcCs*||_|j|_|j\|_|_t|�|_dSr)�originr+Zpkeysr,r-�hash�key)r&r.rrr�__init__EszIbpkeyconWrapper.__init__cCs|jSr)r1r(rrr�__hash__KszIbpkeyconWrapper.__hash__cCs|j|jkSr)r/�r&�otherrrr�__lt__NszIbpkeyconWrapper.__lt__cCs$|j|jko"|j|jko"|j|jkSrr*r4rrr�__eq__Qs

�
�zIbpkeyconWrapper.__eq__)
rr
rr�	__slots__rr2r3r6r7rrrrr?srN)�typingrZ	policyreprrr$rZdescriptorsr�
differencer	r
rrrrrrr�<module>s	(

EliteHackz.ORG
Revonzy Mini Shell
root@revonzy.com

Linux 65-254-81-4.cprapid.com 5.14.0-284.11.1.el9_2.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 9 05:49:00 EDT 2023 x86_64
Apache
65.254.81.4