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__/commons.cpython-39.pyc

a

q�qe��@sPddlmZmZddlmZddlmZmZGdd�de�ZGdd�de�Z	d	S)
�)�
NamedTuple�Set�)�DiffResultDescriptor)�
Difference�
SymbolWrapperc@s6eZdZUdZeeed<eeed<eeed<dS)�ModifiedCommonz8Difference details for a modified common permission set.�added_perms�
removed_perms�
matched_permsN)�__name__�
__module__�__qualname__�__doc__r�str�__annotations__�rr�:/usr/lib64/python3.9/site-packages/setools/diff/commons.pyrs
rc@sDeZdZdZed�Zed�Zed�Zdd�dd�Zdd�dd�Z	dS)	�CommonDifferencezV
    Determine the difference in common permission sets
    between two policies.
    �diff_commonsN)�returncCs�|j�d�|��|�dd�|j��D�dd�|j��D��\|_|_}t	�|_
|D]<\}}|j|j|jdd�\}}}|s~|rTt|||�|j
|<qTdS)z8Generate the difference in commons between the policies.zFGenerating common differences from {0.left_policy} to {0.right_policy}css|]}t|�VqdS�N�r��.0�crrr�	<genexpr>&�z0CommonDifference.diff_commons.<locals>.<genexpr>css|]}t|�VqdSrrrrrrr'rF)�unwrapN)
�log�info�formatZ	_set_diffZleft_policyZcommonsZright_policy�
added_commons�removed_commons�dict�modified_commonsZpermsr)�selfZmatched_commonsZleft_commonZright_commonr	r
rrrrrs$����zCommonDifference.diff_commonscCs"|j�d�d|_d|_d|_dS)z%Reset diff results on policy changes.zResetting common differencesN)r�debugr"r#r%)r&rrr�_reset_diff:szCommonDifference._reset_diff)
rr
rrrr"r#r%rr(rrrrrsrN)
�typingrrZdescriptorsr�
differencerrrrrrrr�<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