관리-도구
편집 파일: sensitivityquery.cpython-39.opt-1.pyc
a ����q�qe�����������������������@���sl���d�dl�Z�d�dlmZ�ddlmZ�ddlmZmZ�ddlm Z �ddl mZ�ddlm Z �G�d d ��d eee�ZdS�)�����N)�Iterable����)�CriteriaDescriptor)� MatchAlias� MatchName)�Sensitivity)�PolicyQuery)�match_levelc�����������������������s\���e�Zd�ZU�dZedd�ZdZeed<�dZ eed<�dd���fd d �Z ee�d�dd�Z ���ZS�) �SensitivityQuerya��� Query MLS Sensitivities Parameter: policy The policy to query. Keyword Parameters/Class attributes: name The name of the category to match. name_regex If true, regular expression matching will be used for matching the name. alias The alias name to match. alias_regex If true, regular expression matching will be used on the alias names. sens The criteria to match the sensitivity by dominance. sens_dom If true, the criteria will match if it dominates the sensitivity. sens_domby If true, the criteria will match if it is dominated by the sensitivity. Zlookup_sensitivity)Zlookup_functionF�sens_dom� sens_dombyN)�returnc��������������������s(���t�t|��j|fi�|���t�t�|�_d�S�)N)�superr ����__init__�loggingZ getLogger�__name__�log)�self�policy�kwargs�� __class__���>/usr/lib64/python3.9/site-packages/setools/sensitivityquery.pyr���)���s����zSensitivityQuery.__init__c�����������������c���s����|�j��d�|����|��|�j���|��|�j���|�j��d�|����|�j���D�]\}|��|�sVqF|�� |�sbqF|�j r�|�jr||�j |k�r�qFn |�jr�|�j |kr�qFn|�j |kr�qF|V��qFdS�)z2Generator which yields all matching sensitivities.z.Generating sensitivity results from {0.policy}z:Sens: {0.sens!r}, dom: {0.sens_dom}, domby: {0.sens_domby}N) r����info�formatZ_match_name_debugZ_match_alias_debug�debugr���Z sensitivitiesZ_match_nameZ_match_alias�sensr���r���)r����sr���r���r����results-���s&���� zSensitivityQuery.results)r���� __module__�__qualname__�__doc__r���r���r����bool�__annotations__r���r���r���r���r���� __classcell__r���r���r���r���r ������s��� r ���)r����typingr���Zdescriptorsr���Zmixinsr���r���Z policyrepr����queryr����utilr ���r ���r���r���r���r����<module>���s���