403Webshell
Server IP : 162.144.4.212  /  Your IP : 216.73.216.108
Web Server : Apache
System : Linux gator2125.hostgator.com 5.14.0-162.23.1.9991722448259.nf.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 31 18:11:45 UTC 2024 x86_64
User : cozeellc ( 2980)
PHP Version : 8.3.31
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /usr/lib64/python3.9/site-packages/setools/diff/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /usr/lib64/python3.9/site-packages/setools/diff/__pycache__/initsid.cpython-39.opt-1.pyc
a

q�qe��@sdddlmZddlmZddlmZddlmZddlm	Z	m
Z
Gdd	�d	e�ZGd
d�de	�ZdS)
�)�
NamedTuple�)�Context�)�ContextWrapper)�DiffResultDescriptor)�
Difference�
SymbolWrapperc@s"eZdZUdZeed<eed<dS)�ModifiedInitialSIDz.Difference details for a modified initial SID.Z
added_contextZremoved_contextN)�__name__�
__module__�__qualname__�__doc__r�__annotations__�rr�:/usr/lib64/python3.9/site-packages/setools/diff/initsid.pyr
s
r
c@sDeZdZdZed�Zed�Zed�Zdd�dd�Zdd�dd�Z	dS)	�InitialSIDsDifferencez:Determine the difference in initsids between two policies.�diff_initialsidsN)�returncCs�|j�d�|��|�dd�|j��D�dd�|j��D��\|_|_}t	�|_
|D]0\}}t|j�t|j�krTt
|j|j�|j
|<qTdS)z=Generate the difference in initial SIDs between the policies.zKGenerating initial SID differences from {0.left_policy} to {0.right_policy}css|]}t|�VqdS�N�r	��.0�irrr�	<genexpr>%�z9InitialSIDsDifference.diff_initialsids.<locals>.<genexpr>css|]}t|�VqdSrrrrrrr&rN)�log�info�formatZ	_set_diffZleft_policyZinitialsidsZright_policy�added_initialsids�removed_initialsids�dict�modified_initialsidsr�contextr
)�selfZmatched_initialsidsZleft_initialsidZright_initialsidrrrrs
���z&InitialSIDsDifference.diff_initialsidscCs"|j�d�d|_d|_d|_dS)z%Reset diff results on policy changes.z Resetting initialsid differencesN)r�debugrr r")r$rrr�_reset_diff4sz!InitialSIDsDifference._reset_diff)
rrr
rrrr r"rr&rrrrrsrN)
�typingrZ	policyreprr#rZdescriptorsr�
differencerr	r
rrrrr�<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit