509318396
Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­
<!DOCTYPE html>
<html>
3
í«„^‹  ã               @   s6   d dl Z ddlmZ ddlmZ G dd„ deeƒZdS )é    Né   )Ú	MatchName)ÚPolicyQueryc                   s(   e Zd ZdZ‡ fdd„Zdd„ Z‡  ZS )ÚPolCapQuerya/  
    Query SELinux policy capabilities

    Parameter:
    policy      The policy to query.

    Keyword Parameters/Class attributes:
    name        The name of the policy capability to match.
    name_regex  If true, regular expression matching will
                be used for matching the name.
    c                s$   t t| ƒj|f|Ž tjtƒ| _d S )N)Úsuperr   Ú__init__ÚloggingZ	getLoggerÚ__name__Úlog)ÚselfÚpolicyÚkwargs)Ú	__class__© ú#/usr/lib64/python3.6/polcapquery.pyr   '   s    zPolCapQuery.__init__c             c   sH   | j jdj| ƒƒ | j| j ƒ x$| jjƒ D ]}| j|ƒs:q*|V  q*W dS )z8Generator which yields all matching policy capabilities.z4Generating policy capability results from {0.policy}N)r
   ÚinfoÚformatZ_match_name_debugr   ZpolcapsZ_match_name)r   Zcapr   r   r   Úresults+   s    
zPolCapQuery.results)r	   Ú
__module__Ú__qualname__Ú__doc__r   r   Ú__classcell__r   r   )r   r   r      s   r   )r   Zmixinsr   Zqueryr   r   r   r   r   r   Ú<module>   s   