404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@3.143.239.63: ~ $
3

�^h�@stddlmZddlmZddlmZddlmZmZddl	m
Z
edd	d
dg�ZGdd
�d
e�ZGdd�de�Z
dS)�)�
namedtuple�)�BoundsRuletype�)�DiffResultDescriptor)�
Difference�Wrapper)�type_wrapper_factoryZmodified_bound�ruleZadded_boundZ
removed_boundc@sHeZdZdZed�Zed�Zed�ZdZdZ	dd�Z
dd�Zdd	�ZdS)
�BoundsDifferencez9Determine the difference in *bounds between two policies.�diff_typeboundsNcCs�|jjdj|��|jdks&|jdkr.|j�|jdd�|jD�dd�|jD�dd�d�\|_|_}g|_	x<|D]4\}}t
|j�t
|j�krp|j	jt
||j|j��qpWdS)	z@Generate the difference in typebound rules between the policies.zJGenerating typebounds differences from {0.left_policy} to {0.right_policy}Ncss|]}t|�VqdS)N)�
BoundsWrapper)�.0�c�r�/usr/lib64/python3.6/bounds.py�	<genexpr>5sz3BoundsDifference.diff_typebounds.<locals>.<genexpr>css|]}t|�VqdS)N)r
)rrrrrr6scSs
t|j�S)N)�str�child)�brrr�<lambda>7sz2BoundsDifference.diff_typebounds.<locals>.<lambda>)�key)�log�info�format�_left_typebounds�_right_typebounds�_create_typebound_listsZ	_set_diff�added_typebounds�removed_typebounds�modified_typeboundsr	�parent�append�modified_bounds_record)�selfZmatched_typeboundsZ
left_boundZright_boundrrrr+s
z BoundsDifference.diff_typeboundscCs�g|_x@|jj�D]2}|jtjkr0|jj|�q|jjdj	|j��qWg|_
x@|jj�D]2}|jtjkrx|j
j|�qZ|jjdj	|j��qZWdS)z$Create rule lists for both policies.z/Unknown rule type: {0} (This is an SETools bug)N)rZleft_policyZbounds�ruletyperZ
typeboundsr"r�errorrrZright_policy)r$r
rrrrCs

z(BoundsDifference._create_typebound_listscCs(|jjd�d|_d|_d|_d|_dS)z%Reset diff results on policy changes.z!Resetting all *bounds differencesN)r�debugrrrr)r$rrr�_reset_diffUs
zBoundsDifference._reset_diff)
�__name__�
__module__�__qualname__�__doc__rrrr rrrrr(rrrrrsrc@s4eZdZdZdZdd�Zdd�Zd	d
�Zdd�Zd
S)r
zWrap *bounds for diff purposes.r%r!rcCs4||_|j|_t|j�|_t|j�|_t|�|_dS)N)�originr%r	r!r�hashr)r$r
rrr�__init__fs
zBoundsWrapper.__init__cCs|jS)N)r)r$rrr�__hash__mszBoundsWrapper.__hash__cCs|j|jkS)N)r)r$�otherrrr�__lt__pszBoundsWrapper.__lt__cCs|j|jko|j|jkS)N)r%r)r$r1rrr�__eq__sszBoundsWrapper.__eq__N)r%r!r)	r)r*r+r,�	__slots__r/r0r2r3rrrrr
`sr
N)�collectionsrZ	policyreprZdescriptorsr�
differencerr�typesr	r#rr
rrrr�<module>sA

Filemanager

Name Type Size Permission Actions
__init__.cpython-36.opt-1.pyc File 1.99 KB 0644
__init__.cpython-36.pyc File 1.99 KB 0644
bool.cpython-36.opt-1.pyc File 2.12 KB 0644
bool.cpython-36.pyc File 2.12 KB 0644
bounds.cpython-36.opt-1.pyc File 3.42 KB 0644
bounds.cpython-36.pyc File 3.42 KB 0644
commons.cpython-36.opt-1.pyc File 1.82 KB 0644
commons.cpython-36.pyc File 1.82 KB 0644
conditional.cpython-36.opt-1.pyc File 1.42 KB 0644
conditional.cpython-36.pyc File 1.42 KB 0644
constraints.cpython-36.opt-1.pyc File 7.03 KB 0644
constraints.cpython-36.pyc File 7.03 KB 0644
context.cpython-36.opt-1.pyc File 1.45 KB 0644
context.cpython-36.pyc File 1.45 KB 0644
default.cpython-36.opt-1.pyc File 2.85 KB 0644
default.cpython-36.pyc File 2.85 KB 0644
descriptors.cpython-36.opt-1.pyc File 1.07 KB 0644
descriptors.cpython-36.pyc File 1.07 KB 0644
difference.cpython-36.opt-1.pyc File 4.83 KB 0644
difference.cpython-36.pyc File 5 KB 0644
fsuse.cpython-36.opt-1.pyc File 2.64 KB 0644
fsuse.cpython-36.pyc File 2.64 KB 0644
genfscon.cpython-36.opt-1.pyc File 2.73 KB 0644
genfscon.cpython-36.pyc File 2.73 KB 0644
ibendportcon.cpython-36.opt-1.pyc File 2.75 KB 0644
ibendportcon.cpython-36.pyc File 2.75 KB 0644
ibpkeycon.cpython-36.opt-1.pyc File 2.73 KB 0644
ibpkeycon.cpython-36.pyc File 2.73 KB 0644
initsid.cpython-36.opt-1.pyc File 1.86 KB 0644
initsid.cpython-36.pyc File 1.86 KB 0644
mls.cpython-36.opt-1.pyc File 8.62 KB 0644
mls.cpython-36.pyc File 8.62 KB 0644
mlsrules.cpython-36.opt-1.pyc File 3.4 KB 0644
mlsrules.cpython-36.pyc File 3.4 KB 0644
netifcon.cpython-36.opt-1.pyc File 2.76 KB 0644
netifcon.cpython-36.pyc File 2.76 KB 0644
nodecon.cpython-36.opt-1.pyc File 2.64 KB 0644
nodecon.cpython-36.pyc File 2.64 KB 0644
objclass.cpython-36.opt-1.pyc File 2.43 KB 0644
objclass.cpython-36.pyc File 2.43 KB 0644
polcap.cpython-36.opt-1.pyc File 1.44 KB 0644
polcap.cpython-36.pyc File 1.44 KB 0644
portcon.cpython-36.opt-1.pyc File 2.68 KB 0644
portcon.cpython-36.pyc File 2.68 KB 0644
properties.cpython-36.opt-1.pyc File 1.3 KB 0644
properties.cpython-36.pyc File 1.3 KB 0644
rbacrules.cpython-36.opt-1.pyc File 4.85 KB 0644
rbacrules.cpython-36.pyc File 4.85 KB 0644
roles.cpython-36.opt-1.pyc File 2.39 KB 0644
roles.cpython-36.pyc File 2.39 KB 0644
terules.cpython-36.opt-1.pyc File 14.25 KB 0644
terules.cpython-36.pyc File 14.25 KB 0644
typeattr.cpython-36.opt-1.pyc File 2.52 KB 0644
typeattr.cpython-36.pyc File 2.52 KB 0644
types.cpython-36.opt-1.pyc File 3.08 KB 0644
types.cpython-36.pyc File 3.08 KB 0644
users.cpython-36.opt-1.pyc File 3.05 KB 0644
users.cpython-36.pyc File 3.05 KB 0644