404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@3.145.107.223: ~ $
3

�^��@s�dZddlZddlmZmZddlmZddlmZGdd�d�Z	Gdd	�d	e	�Z
Gd
d�de�ZGdd
�d
e�ZGdd�de�Z
Gdd�de�ZGdd�d�ZdS)z�
SETools descriptors.

These classes override how a class's attributes are get/set/deleted.
This is how the @property decorator works.

See https://docs.python.org/3/howto/descriptor.html
for more details.
�N)�ABC�abstractmethod)�defaultdict)�WeakKeyDictionaryc@s,eZdZdZd	dd�Zd
dd�Zdd�ZdS)�CriteriaDescriptora�
    Single item criteria descriptor.

    Keyword Parameters:
    name_regex      The name of instance's regex setting attribute;
                    used as name_regex below.  If unset,
                    regular expressions will never be used.
    lookup_function The name of the SELinuxPolicy lookup function,
                    e.g. lookup_type or lookup_boolean.
    default_value   The default value of the criteria.  The default
                    is None.
    enum_class      The class of enumeration which supports a
                    lookup class method.

    Read-only instance attribute use (obj parameter):
    policy          The instance of SELinuxPolicy
    name_regex      This attribute is read to determine if
                    the criteria should be looked up or
                    compiled into a regex.  If the attribute
                    does not exist, False is assumed.
    NcCsJ|s|s|std��|o|s&td��||_||_||_||_t�|_dS)NzQA simple attribute should be used if there is no regex, lookup function, or enum.z9Lookup functions and enum classes are mutually exclusive.)�AssertionError�regex�
default_value�lookup_function�
enum_classr�	instances)�selfZ
name_regexr
r	r�r�#/usr/lib64/python3.6/descriptors.py�__init__CszCriteriaDescriptor.__init__cCs|dkr|S|jj||j�S)N)r�
setdefaultr	)r
�obj�objtyperrr�__get__RszCriteriaDescriptor.__get__cCs�|sd|j|<nn|jr6t||jd�r6tj|�|j|<nH|jrZt|j|j�}||�|j|<n$|jrt|jj|�|j|<n
||j|<dS)NF)	rr�getattr�re�compiler
�policyr�lookup)r
r�valuerrrr�__set__XszCriteriaDescriptor.__set__)NNNN)N)�__name__�
__module__�__qualname__�__doc__rrrrrrrr+s

rc@seZdZdZdd�ZdS)�CriteriaSetDescriptorz!Descriptor for a set of criteria.cs�|sd�j|<n��jr6t|�jd�r6tj|��j|<nd�jrht|j�j��t�fdd�|D���j|<n2�jr�t�fdd�|D���j|<nt|��j|<dS)NFc3s|]}�|�VqdS)Nr)�.0�v)rrr�	<genexpr>qsz0CriteriaSetDescriptor.__set__.<locals>.<genexpr>c3s|]}�jj|�VqdS)N)rr)r!r")r
rrr#ss)	rrrrrr
r�setr)r
rrr)rr
rrjszCriteriaSetDescriptor.__set__N)rrrrrrrrrr fsr c@s:eZdZdZdd�Zddd�Zedd��Zed	d
��ZdS)�NetworkXGraphEdgeDescriptora'
    Descriptor abstract base class for NetworkX graph edge attributes.

    Parameter:
    name        The edge property name

    Instance class attribute use (obj parameter):
    G           The NetworkX graph
    source      The edge's source node
    target      The edge's target node
    cCs
||_dS)N)�name)r
�propnamerrrr�sz$NetworkXGraphEdgeDescriptor.__init__NcCsH|dkr|Sy|j|j|j|jStk
rBt|j��YnXdS)N)�G�source�targetr&�KeyError�AttributeError)r
rrrrrr�sz#NetworkXGraphEdgeDescriptor.__get__cCsdS)Nr)r
rrrrrr�sz#NetworkXGraphEdgeDescriptor.__set__cCsdS)Nr)r
rrrr�
__delete__�sz&NetworkXGraphEdgeDescriptor.__delete__)N)	rrrrrrrrr-rrrrr%�s

	r%c@s eZdZdZdd�Zdd�ZdS)�EdgeAttrDictz7A descriptor for edge attributes that are dictionaries.cCs:|dkr&tt�|j|j|j|j<ntdj|j���dS)Nz0{0} dictionaries should not be assigned directly)r�listr(r)r*r&r,�format)r
rrrrrr�szEdgeAttrDict.__set__cCs |j|j|j|jj�dS)N)r(r)r*r&�clear)r
rrrrr-�szEdgeAttrDict.__delete__N)rrrrrr-rrrrr.�sr.c@s eZdZdZdd�Zdd�ZdS)�EdgeAttrIntMaxz�
    A descriptor for edge attributes that are non-negative integers that always
    keep the max assigned value until re-initialized.
    cCs\|dkr"d|j|j|j|j<n6|j|j|j|j}t||�|j|j|j|j<dS)Nr)r(r)r*r&�max)r
rrZ
current_valuerrrr�szEdgeAttrIntMax.__set__cCsd|j|j|j|j<dS)Nr)r(r)r*r&)r
rrrrr-�szEdgeAttrIntMax.__delete__N)rrrrrr-rrrrr2�sr2c@s eZdZdZdd�Zdd�ZdS)�EdgeAttrListz0A descriptor for edge attributes that are lists.cCs6|dkr"g|j|j|j|j<ntdj|j���dS)Nz){0} lists should not be assigned directly)r(r)r*r&�
ValueErrorr0)r
rrrrrr�szEdgeAttrList.__set__cCs |j|j|j|jj�dS)N)r(r)r*r&r1)r
rrrrr-�szEdgeAttrList.__delete__N)rrrrrr-rrrrr4�sr4c@s2eZdZdZdd�Zddd�Zdd�Zd	d
�ZdS)�PermissionMapDescriptoraN
    Descriptor for Permission Map mappings.

    Parameter:
    name        The map setting name.
    validator   A callable for validating the setting.

    Instance class attribute use (obj parameter):
    perm_map    The full permission map.
    class_      The mapping's object class
    perm        The mapping's permission
    cCs||_||_dS)N)r&�	validator)r
r'r7rrrr�sz PermissionMapDescriptor.__init__NcCs$|dkr|S|j|j|j|jS)N)�perm_map�class_�permr&)r
rrrrrr�szPermissionMapDescriptor.__get__cCs"|j|�|j|j|j|j<dS)N)r7r8r9r:r&)r
rrrrrr�szPermissionMapDescriptor.__set__cCst�dS)N)r,)r
rrrrr-�sz"PermissionMapDescriptor.__delete__)N)rrrrrrrr-rrrrr6�s


r6)rr�abcrr�collectionsr�weakrefrrr r%r.r2r4r6rrrr�<module>s
;#

Filemanager

Name Type Size Permission Actions
__init__.cpython-36.opt-1.pyc File 2.34 KB 0644
__init__.cpython-36.pyc File 2.34 KB 0644
boolquery.cpython-36.opt-1.pyc File 1.8 KB 0644
boolquery.cpython-36.pyc File 1.8 KB 0644
boundsquery.cpython-36.opt-1.pyc File 1.67 KB 0644
boundsquery.cpython-36.pyc File 1.67 KB 0644
categoryquery.cpython-36.opt-1.pyc File 1.49 KB 0644
categoryquery.cpython-36.pyc File 1.49 KB 0644
commonquery.cpython-36.opt-1.pyc File 1.71 KB 0644
commonquery.cpython-36.pyc File 1.71 KB 0644
constraintquery.cpython-36.opt-1.pyc File 4.42 KB 0644
constraintquery.cpython-36.pyc File 4.42 KB 0644
defaultquery.cpython-36.opt-1.pyc File 2.12 KB 0644
defaultquery.cpython-36.pyc File 2.12 KB 0644
descriptors.cpython-36.opt-1.pyc File 7.36 KB 0644
descriptors.cpython-36.pyc File 7.56 KB 0644
devicetreeconquery.cpython-36.opt-1.pyc File 2.31 KB 0644
devicetreeconquery.cpython-36.pyc File 2.31 KB 0644
dta.cpython-36.opt-1.pyc File 13.23 KB 0644
dta.cpython-36.pyc File 13.23 KB 0644
exception.cpython-36.opt-1.pyc File 8.63 KB 0644
exception.cpython-36.pyc File 8.63 KB 0644
fsusequery.cpython-36.opt-1.pyc File 2.81 KB 0644
fsusequery.cpython-36.pyc File 2.81 KB 0644
genfsconquery.cpython-36.opt-1.pyc File 2.96 KB 0644
genfsconquery.cpython-36.pyc File 2.96 KB 0644
ibendportconquery.cpython-36.opt-1.pyc File 3.01 KB 0644
ibendportconquery.cpython-36.pyc File 3.01 KB 0644
ibpkeyconquery.cpython-36.opt-1.pyc File 4.22 KB 0644
ibpkeyconquery.cpython-36.pyc File 4.22 KB 0644
infoflow.cpython-36.opt-1.pyc File 11.33 KB 0644
infoflow.cpython-36.pyc File 11.33 KB 0644
initsidquery.cpython-36.opt-1.pyc File 2.41 KB 0644
initsidquery.cpython-36.pyc File 2.41 KB 0644
iomemconquery.cpython-36.opt-1.pyc File 3.67 KB 0644
iomemconquery.cpython-36.pyc File 3.67 KB 0644
ioportconquery.cpython-36.opt-1.pyc File 3.67 KB 0644
ioportconquery.cpython-36.pyc File 3.67 KB 0644
mixins.cpython-36.opt-1.pyc File 6.31 KB 0644
mixins.cpython-36.pyc File 6.31 KB 0644
mlsrulequery.cpython-36.opt-1.pyc File 2.95 KB 0644
mlsrulequery.cpython-36.pyc File 2.95 KB 0644
netifconquery.cpython-36.opt-1.pyc File 2.48 KB 0644
netifconquery.cpython-36.pyc File 2.48 KB 0644
nodeconquery.cpython-36.opt-1.pyc File 3.53 KB 0644
nodeconquery.cpython-36.pyc File 3.53 KB 0644
objclassquery.cpython-36.opt-1.pyc File 2.87 KB 0644
objclassquery.cpython-36.pyc File 2.87 KB 0644
pcideviceconquery.cpython-36.opt-1.pyc File 2.65 KB 0644
pcideviceconquery.cpython-36.pyc File 2.65 KB 0644
permmap.cpython-36.opt-1.pyc File 11.67 KB 0644
permmap.cpython-36.pyc File 11.9 KB 0644
pirqconquery.cpython-36.opt-1.pyc File 2.58 KB 0644
pirqconquery.cpython-36.pyc File 2.58 KB 0644
polcapquery.cpython-36.opt-1.pyc File 1.29 KB 0644
polcapquery.cpython-36.pyc File 1.29 KB 0644
portconquery.cpython-36.opt-1.pyc File 4.21 KB 0644
portconquery.cpython-36.pyc File 4.21 KB 0644
query.cpython-36.opt-1.pyc File 1003 B 0644
query.cpython-36.pyc File 1003 B 0644
rbacrulequery.cpython-36.opt-1.pyc File 3.75 KB 0644
rbacrulequery.cpython-36.pyc File 3.75 KB 0644
rolequery.cpython-36.opt-1.pyc File 1.94 KB 0644
rolequery.cpython-36.pyc File 1.94 KB 0644
sensitivityquery.cpython-36.opt-1.pyc File 2.12 KB 0644
sensitivityquery.cpython-36.pyc File 2.12 KB 0644
terulequery.cpython-36.opt-1.pyc File 6.13 KB 0644
terulequery.cpython-36.pyc File 6.13 KB 0644
typeattrquery.cpython-36.opt-1.pyc File 2.09 KB 0644
typeattrquery.cpython-36.pyc File 2.09 KB 0644
typequery.cpython-36.opt-1.pyc File 2.81 KB 0644
typequery.cpython-36.pyc File 2.81 KB 0644
userquery.cpython-36.opt-1.pyc File 3.64 KB 0644
userquery.cpython-36.pyc File 3.64 KB 0644
util.cpython-36.opt-1.pyc File 4.59 KB 0644
util.cpython-36.pyc File 4.59 KB 0644