HEX
Server: Apache
System: Linux dinesh8189 5.15.98-grsec-sharedvalley-2.lc.el8.x86_64 #1 SMP Thu Mar 9 09:07:30 -03 2023 x86_64
User: cgmgerenciamento1 (814285)
PHP: 8.1.26
Disabled: apache_child_terminate,dl,escapeshellarg,escapeshellcmd,exec,link,mail,openlog,passthru,pcntl_alarm,pcntl_exec,pcntl_fork,pcntl_get_last_error,pcntl_getpriority,pcntl_setpriority,pcntl_signal,pcntl_signal_dispatch,pcntl_sigprocmask,pcntl_sigtimedwait,pcntl_sigwaitinfo,pcntl_strerror,pcntl_wait,pcntl_waitpid,pcntl_wexitstatus,pcntl_wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,php_check_syntax,php_strip_whitespace,popen,proc_close,proc_open,shell_exec,symlink,system
Upload Files
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