a qéqexã@sNddlZddlmZddlmZddlmZddlmZGdd„deeƒZ dS) éN)ÚIterableé)Ú MatchName)ÚPolicyCapability)Ú PolicyQuerycs8eZdZdZddœ‡fdd„ Zeedœdd„Z‡ZS)Ú 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. N)Úreturnc s(tt|ƒj|fi|¤Žt t¡|_dS)N)ÚsuperrÚ__init__ÚloggingZ getLoggerÚ__name__Úlog)ÚselfÚpolicyÚkwargs©Ú __class__©ú9/usr/lib64/python3.9/site-packages/setools/polcapquery.pyr szPolCapQuery.__init__ccsD|j d |¡¡| |j¡|j ¡D]}| |¡s8q(|Vq(dS)z8Generator which yields all matching policy capabilities.z4Generating policy capability results from {0.policy}N)r ÚinfoÚformatZ_match_name_debugrZpolcapsZ _match_name)rZcaprrrÚresultss   zPolCapQuery.results) r Ú __module__Ú __qualname__Ú__doc__r rrrÚ __classcell__rrrrr s r) r ÚtypingrZmixinsrZ policyreprÚqueryrrrrrrÚs