a
qéqe] ã @ s d dl mZ d dlmZmZmZmZ ddlmZm Z ddl
mZmZm
Z
eedœdd„Zeed œd
d„Zeedœdd
„Zeeedœdd„Zeeedœdd„Zeeeeedœdd„Zeeeeeedœdd„Zd"ee eee ee
ddœdd„Zd#eeeeeef dœd d!„ZdS )$é )Úsuppress)ÚIterableÚListÚOptionalÚTupleé )ÚInvalidPermissionÚNoCommon)ÚLevelÚObjClassÚ
SELinuxPolicy)ÚregexÚreturnc C s" |rt | t| ƒ¡ƒS | |kS dS )zØ
Match the object with optional regular expression.
Parameters:
obj The object to match.
criteria The criteria to match.
regex If regular expression matching should be used.
N)ÚboolÚsearchÚstr©ÚobjÚcriteriar
© r ú2/usr/lib64/python3.9/site-packages/setools/util.pyÚmatch_regex
s
r )Úequalr c C s |r| |kS t | |¡ƒS dS )a
Match the object (a set) with optional set equality.
Parameters:
obj The object to match. (a set)
criteria The criteria to match. (a set)
equal If set equality should be used. Otherwise
any set intersection will match.
N)r Úintersection)r r r r r r Ú match_set s r c s&