Revonzy Mini Shell

Revonzy Mini Shell

Şuanki Dizin: /usr/lib64/python3.9/site-packages/setools/__pycache__/
Dosya Yükle :
Şuanki Dosya : //usr/lib64/python3.9/site-packages/setools/__pycache__/objclassquery.cpython-39.pyc

a

q�qe
�@s�ddlZddlZddlmZddlmZddlmZmZddl	m
Z
ddlmZddl
mZdd	lmZdd
lmZmZGdd�dee�ZdS)
�N)�suppress)�Iterable�)�CriteriaDescriptor�CriteriaSetDescriptor)�NoCommon)�	MatchName)�ObjClass)�PolicyQuery)�match_regex�match_regex_or_setcs|eZdZUdZedd�ZdZeed<e	d�Z
dZeed<dZeed<dZ
eed<d	d
��fdd�Zeed
�d
d�Z�ZS)�
ObjClassQueryaO
    Query object classes.

    Parameter:
    policy          The policy to query.

    Keyword Parameters/Class attributes:
    name            The name of the object set to match.
    name_regex      If true, regular expression matching will
                    be used for matching the name.
    common          The name of the inherited common to match.
    common_regex    If true, regular expression matching will
                    be used for matching the common name.
    perms           The permissions to match.
    perms_equal     If true, only commons with permission sets
                    that are equal to the criteria will
                    match.  Otherwise, any intersection
                    will match.
    perms_regex     If true, regular expression matching
                    will be used on the permission names instead
                    of set logic.
                    comparison will not be used.
    perms_indirect  If false, permissions inherited from a common
                    permission set not will be evaluated.  Default
                    is true.
    �common_regexZ
lookup_commonF�perms_regex�perms_equalT�perms_indirectN)�returncs(tt|�j|fi|��t�t�|_dS)N)�superr
�__init__�loggingZ	getLogger�__name__�log)�self�policy�kwargs��	__class__��;/usr/lib64/python3.9/site-packages/setools/objclassquery.pyr6szObjClassQuery.__init__c	cs�|j�d�|��|�|j�|j�d�|��|j�d�|��|j��D]�}|�|�s\qL|jr�zt	|j|j|j
�szWqLWnty�YqLYn0|jr�|j}|j
r�tt��||jjO}Wd�n1s�0Yt||j|j|j�s�qL|VqLdS)z3Generator which yields all matching object classes.z/Generating object class results from {0.policy}z-Common: {0.common!r}, regex: {0.common_regex}z[Perms: {0.perms}, regex: {0.perms_regex}, eq: {0.perms_equal}, indirect: {0.perms_indirect}N)r�info�formatZ_match_name_debug�debugr�classesZ_match_name�commonrrr�permsrrrrr)r�class_r$rrr�results:s@
�
�

*�zObjClassQuery.results)r�
__module__�__qualname__�__doc__rr#r�bool�__annotations__rr$rrrrrr	r&�
__classcell__rrrrr
s

r
)r�re�
contextlibr�typingrZdescriptorsrr�	exceptionrZmixinsrZ	policyrepr	�queryr
�utilrrr
rrrr�<module>s

EliteHackz.ORG
Revonzy Mini Shell
root@revonzy.com

Linux 65-254-81-4.cprapid.com 5.14.0-284.11.1.el9_2.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 9 05:49:00 EDT 2023 x86_64
Apache
65.254.81.4