404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@52.14.49.59: ~ $
3

�^B)�@s�ddlmZmZddlmZddlmZmZmZeddddg�Z	ed	dddg�Z
ed
ddd
dg�Zee�Z
ee�Zdd�Zdd�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZdS) �)�defaultdict�
namedtuple�)�DiffResultDescriptor)�
Difference�
SymbolWrapper�WrapperZmodified_category�
added_aliases�removed_aliases�matched_aliasesZmodified_sensitivityZmodified_level�level�added_categories�removed_categories�matched_categoriescCs>yt|j|Stk
r8t|�}|t|j|<|SXdS)z
    Wrap category from the specified policy.

    This caches results to prevent duplicate wrapper
    objects in memory.
    N)�_cats_cache�policy�KeyErrorr)�category�c�r�/usr/lib64/python3.6/mls.py�category_wrapper_factory+srcCs>yt|j|Stk
r8t|�}|t|j|<|SXdS)z�
    Wrap sensitivity from the specified policy.

    This caches results to prevent duplicate wrapper
    objects in memory.
    N)�_sens_cacherrr)�sensitivityrrrr�sensitivity_wrapper_factory:src@s8eZdZdZed�Zed�Zed�Zdd�Zdd�Z	dS)�CategoriesDifferencez<Determine the difference in categories between two policies.�diff_categoriescCs�|jjdj|��|jdd�|jj�D�dd�|jj�D��\|_|_}t	�|_
xH|D]@\}}|j|j�|j�dd�\}}}|s�|rVt|||�|j
|<qVWdS)z;Generate the difference in categories between the policies.zHGenerating category differences from {0.left_policy} to {0.right_policy}css|]}t|�VqdS)N)r)�.0rrrr�	<genexpr>Xsz7CategoriesDifference.diff_categories.<locals>.<genexpr>css|]}t|�VqdS)N)r)rrrrrrYsF)�unwrapN)
�log�info�format�	_set_diff�left_policy�
categories�right_policyr
r�dict�modified_categories�aliases�modified_cat_record)�selfrZ
left_categoryZright_categoryr	r
rrrrrQs z$CategoriesDifference.diff_categoriescCs"|jjd�d|_d|_d|_dS)z%Reset diff results on policy changes.zResetting category differencesN)r �debugr
rr()r+rrr�_reset_diffksz CategoriesDifference._reset_diffN)
�__name__�
__module__�__qualname__�__doc__rr
rr(rr-rrrrrIsrc@s8eZdZdZed�Zed�Zed�Zdd�Zdd�Z	dS)�SensitivitiesDifferencez?Determine the difference in sensitivities between two policies.�diff_sensitivitiescCs�|jjdj|��|jdd�|jj�D�dd�|jj�D��\|_|_}t	�|_
xH|D]@\}}|j|j�|j�dd�\}}}|s�|rVt|||�|j
|<qVWdS)z>Generate the difference in sensitivities between the policies.zKGenerating sensitivity differences from {0.left_policy} to {0.right_policy}css|]}t|�VqdS)N)r)r�srrrr�sz=SensitivitiesDifference.diff_sensitivities.<locals>.<genexpr>css|]}t|�VqdS)N)r)rr4rrrr�sF)rN)
r r!r"r#r$Z
sensitivitiesr&�added_sensitivities�removed_sensitivitiesr'�modified_sensitivitiesr)�modified_sens_record)r+Zmatched_sensitivitiesZ	left_sensZ
right_sensr	r
rrrrr3{s z*SensitivitiesDifference.diff_sensitivitiescCs"|jjd�d|_d|_d|_dS)z%Reset diff results on policy changes.z!Resetting sensitivity differencesN)r r,r5r6r7)r+rrrr-�sz#SensitivitiesDifference._reset_diffN)
r.r/r0r1rr5r6r7r3r-rrrrr2ssr2c@s8eZdZdZed�Zed�Zed�Zdd�Zdd�Z	dS)�LevelDeclsDifferencez8Determine the difference in levels between two policies.�diff_levelscCs�|jjdj|��|jdd�|jj�D�dd�|jj�D��\|_|_}g|_	x\|D]T\}}|jdd�|j
�D�dd�|j
�D��\}}}|s�|rT|j	jt||||��qTWdS)z7Generate the difference in levels between the policies.zJGenerating level decl differences from {0.left_policy} to {0.right_policy}css|]}t|�VqdS)N)�LevelDeclWrapper)rr4rrrr�sz3LevelDeclsDifference.diff_levels.<locals>.<genexpr>css|]}t|�VqdS)N)r;)rr4rrrr�scss|]}t|�VqdS)N)r)rrrrrr�scss|]}t|�VqdS)N)r)rrrrrr�sN)
r r!r"r#r$Zlevelsr&�added_levels�removed_levels�modified_levelsr%�append�modified_level_record)r+Zmatched_levelsZ
left_levelZright_levelr
rrrrrr:�s z LevelDeclsDifference.diff_levelscCs"|jjd�d|_d|_d|_dS)z%Reset diff results on policy changes.z!Resetting sensitivity differencesN)r r,r<r=r>)r+rrrr-�sz LevelDeclsDifference._reset_diffN)
r.r/r0r1rr<r=r>r:r-rrrrr9�sr9c@s4eZdZdZdZdd�Zdd�Zdd�Zd	d
�ZdS)r;z-Wrap level declarations to allow comparisons.rcCs ||_t|j�|_t|�|_dS)N)�originrr�hash�key)r+rrrr�__init__�szLevelDeclWrapper.__init__cCs|jS)N)rC)r+rrr�__hash__�szLevelDeclWrapper.__hash__cCs|j|jkS)N)r)r+�otherrrr�__eq__�szLevelDeclWrapper.__eq__cCs|j|jkS)N)r)r+rFrrr�__lt__�szLevelDeclWrapper.__lt__N)	r.r/r0r1�	__slots__rDrErGrHrrrrr;�sr;c@s4eZdZdZd
Zdd�Zdd�Zdd	�Zd
d�ZdS)�LevelWrapperz!Wrap levels to allow comparisons.rr%cCs.||_t|j�|_tdd�|j�D��|_dS)Ncss|]}t|�VqdS)N)r)rrrrrr�sz(LevelWrapper.__init__.<locals>.<genexpr>)rArr�setr%)r+rrrrrD�szLevelWrapper.__init__cCs
t|j�S)N)rBrA)r+rrrrE�szLevelWrapper.__hash__cCs2y|j|jko|j|jkStk
r,dSXdS)NF)rr%�AttributeError)r+rFrrrrG�s
zLevelWrapper.__eq__cCs2y|j|jko|j|jkStk
r,dSXdS)NF)rr%rL)r+rFrrrrH�s
zLevelWrapper.__lt__N)rr%)	r.r/r0r1rIrDrErGrHrrrrrJ�s	rJc@s4eZdZdZd
Zdd�Zdd�Zdd	�Zd
d�ZdS)�RangeWrapperz�
    Wrap ranges to allow comparisons.

    This only compares the low and high levels of the range.
    It does not detect additions/removals/modifications
    to levels between the low and high levels of the range.
    �low�highcCs"||_t|j�|_t|j�|_dS)N)rArJrNrO)r+Zrange_rrrrDszRangeWrapper.__init__cCs
t|j�S)N)rBrA)r+rrrrEszRangeWrapper.__hash__cCs2y|j|jko|j|jkStk
r,dSXdS)NF)rNrOrL)r+rFrrrrGs
zRangeWrapper.__eq__cCs2y|j|jko|j|jkStk
r,dSXdS)NF)rNrOrL)r+rFrrrrH s
zRangeWrapper.__lt__N)rNrO)	r.r/r0r1rIrDrErGrHrrrrrMs	rMN)�collectionsrrZdescriptorsr�
differencerrrr*r8r@r'rrrrrr2r9r;rJrMrrrr�<module>s,*,,!

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