Al-HUWAITI Shell
Al-huwaiti


Server : LiteSpeed
System : Linux ncr1.int3rnet.net 4.18.0-553.123.2.lve.el8.x86_64 #1 SMP Thu May 7 23:17:13 UTC 2026 x86_64
User : digitaln ( 1704)
PHP Version : 8.1.34
Disable Function : NONE
Directory :  /usr/lib64/python3.6/site-packages/setools/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

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

�^��@sBddlZddlmZddlmZddlmZGdd�dee�ZdS)�N�)�CriteriaDescriptor)�	MatchName)�PolicyQuerycsFeZdZdZdZedd��Zejdd��Z�fdd�Zdd	�Z	�Z
S)
�	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.
    NcCs|jS)N)�_default)�self�r	�!/usr/lib64/python3.6/boolquery.py�default+szBoolQuery.defaultcCs|dkrd|_n
t|�|_dS)N)r�bool)r�valuer	r	r
r/scs$tt|�j|f|�tjt�|_dS)N)�superr�__init__�loggingZ	getLogger�__name__�log)r�policy�kwargs)�	__class__r	r
r6szBoolQuery.__init__ccsr|jjdj|��|j|j�|jjdj|��x<|jj�D].}|j|�sLq<|jdk	rd|j	|jkrdq<|Vq<WdS)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)rZbooleanr	r	r
�results:s
zBoolQuery.results)r�
__module__�__qualname__�__doc__r�propertyr�setterrr�
__classcell__r	r	)rr
rs
r)rZdescriptorsrZmixinsrZqueryrrr	r	r	r
�<module>s

Al-HUWAITI Shell