403Webshell
Server IP : 172.24.0.40  /  Your IP : 216.73.216.10
Web Server : Apache
System : Linux dbweb26.ust.edu.ph 4.18.0-513.5.1.el8_9.x86_64 #1 SMP Fri Sep 29 05:21:10 EDT 2023 x86_64
User : apache ( 48)
PHP Version : 8.2.18
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib64/python3.6/site-packages/setools/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /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

Youez - 2016 - github.com/yon3zu
LinuXploit