HEX
Server: LiteSpeed
System: Linux br-asc-web1845.main-hosting.eu 5.14.0-611.42.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Mar 24 05:30:20 EDT 2026 x86_64
User: u790421558 (790421558)
PHP: 8.2.30
Disabled: system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
Upload Files
File: //usr/lib64/python3.9/site-packages/setools/__pycache__/query.cpython-39.pyc
a

q�qe��@sHddlmZmZddlmZddlmZddlmZGdd�de�Z	dS)	�)�ABC�abstractmethod)�Logger)�Iterable�)�
SELinuxPolicyc@sDeZdZUdZeed<eed<edd�dd�Zee	d�d	d
��Z
dS)�PolicyQueryz/Abstract base class for SELinux policy queries.�log�policyN)r
�returncKsR||_t|��dd�D]6}t||d�}t|�r<td�|���t||||�qdS)NT)�reversez0Keyword parameter {0} conflicts with a callable.)r
�sorted�keys�getattr�callable�
ValueError�format�setattr)�selfr
�kwargs�name�attr�r�3/usr/lib64/python3.9/site-packages/setools/query.py�__init__szPolicyQuery.__init__)rcCsdS)z}
        Generator which returns the matches for the query.  This method
        should be overridden by subclasses.
        Nr)rrrr�results#szPolicyQuery.results)�__name__�
__module__�__qualname__�__doc__r�__annotations__rrrrrrrrrr
s
rN)
�abcrrZloggingr�typingrZ	policyreprrrrrr�<module>s