HEX
Server: Apache
System: Linux dinesh8189 5.15.98-grsec-sharedvalley-2.lc.el8.x86_64 #1 SMP Thu Mar 9 09:07:30 -03 2023 x86_64
User: cgmgerenciamento1 (814285)
PHP: 8.1.26
Disabled: apache_child_terminate,dl,escapeshellarg,escapeshellcmd,exec,link,mail,openlog,passthru,pcntl_alarm,pcntl_exec,pcntl_fork,pcntl_get_last_error,pcntl_getpriority,pcntl_setpriority,pcntl_signal,pcntl_signal_dispatch,pcntl_sigprocmask,pcntl_sigtimedwait,pcntl_sigwaitinfo,pcntl_strerror,pcntl_wait,pcntl_waitpid,pcntl_wexitstatus,pcntl_wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,php_check_syntax,php_strip_whitespace,popen,proc_close,proc_open,shell_exec,symlink,system
Upload Files
File: //usr/lib64/python3.6/site-packages/setools/diff/__pycache__/initsid.cpython-36.pyc
3

�^�	�@sVddlmZddlmZddlmZddlmZmZedddg�Z	Gd	d
�d
e�Z
dS)�)�
namedtuple�)�ContextWrapper)�DiffResultDescriptor)�
Difference�
SymbolWrapperZmodified_initsidZ
added_contextZremoved_contextc@s8eZdZdZed�Zed�Zed�Zdd�Zdd�Z	dS)�InitialSIDsDifferencez:Determine the difference in initsids between two policies.�diff_initialsidscCs�|jjdj|��|jdd�|jj�D�dd�|jj�D��\|_|_}t	�|_
x8|D]0\}}t|j�t|j�krVt
|j|j�|j
|<qVWdS)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�i�r�/usr/lib64/python3.6/initsid.py�	<genexpr>,sz9InitialSIDsDifference.diff_initialsids.<locals>.<genexpr>css|]}t|�VqdS)N)r)r
rrrr
r-sN)�log�info�formatZ	_set_diffZleft_policyZinitialsidsZright_policy�added_initialsids�removed_initialsids�dict�modified_initialsidsr�context�modified_initsids_record)�selfZmatched_initialsidsZleft_initialsidZright_initialsidrrr
r	%s
 z&InitialSIDsDifference.diff_initialsidscCs"|jjd�d|_d|_d|_dS)z%Reset diff results on policy changes.z Resetting initialsid differencesN)r�debugrrr)rrrr
�_reset_diff;sz!InitialSIDsDifference._reset_diffN)
�__name__�
__module__�__qualname__�__doc__rrrrr	rrrrr
rsrN)�collectionsrrrZdescriptorsr�
differencerrrrrrrr
�<module>s