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__/defaultquery.cpython-36.pyc
3

�^1�@sbddlZddlZddlmZddlmZmZddlmZddl	m
Z
mZmZGdd�dee�Z
dS)	�N�)�PolicyQuery)�CriteriaDescriptor�CriteriaSetDescriptor)�
MatchObjClass)�DefaultRuletype�DefaultValue�DefaultRangeValuecsFeZdZdZeed�Zeed�Z	ee
d�Z�fdd�Zdd�Z
�ZS)�DefaultQuerya#
    Query default_* statements.

    Parameter:
    policy          The policy to query.

    Keyword Parameters/Class attributes:
    ruletype        The rule type(s) to match.
    tclass          The object class(es) to match.
    tclass_regex    If true, use a regular expression for
                    matching the rule's object class.
    default         The default to base new contexts (e.g. "source" or "target")
    default_range   The range to use on new context, default_range only
                    ("low", "high", "low_high")
    )�
enum_classcs$tt|�j|f|�tjt�|_dS)N)�superr
�__init__�loggingZ	getLogger�__name__�log)�self�policy�kwargs)�	__class__��$/usr/lib64/python3.6/defaultquery.pyr
2szDefaultQuery.__init__ccs�|jjdj|��|jjdj|��|j|j�|jjdj|��|jjdj|��x||jj�D]n}|jrx|j|jkrxq`|j|�s�q`|j	r�|j	|j	kr�q`|j
r�y|j
|j
kr�w`Wntk
r�w`YnX|Vq`WdS)z9Generator which yields all matching default_* statements.z,Generating default_* results from {0.policy}zRuletypes: {0.ruletype!r}zDefault: {0.default!r}zRange: {0.default_range!r}N)r�info�format�debugZ_match_object_class_debugrZdefaults�ruletypeZ_match_object_class�default�
default_range�AttributeError)r�drrr�results6s&
zDefaultQuery.results)r�
__module__�__qualname__�__doc__rrrrrrr	rr
r�
__classcell__rr)rrr
s


r
)r�reZqueryrZdescriptorsrrZmixinsrZ	policyreprrr	r
rrrr�<module>s