/usr/lib/python3.9/site-packages/sepolgen/__pycache__
Edit: /usr/lib/python3.9/site-packages/sepolgen/__pycache__/matching.cpython-39.pyc (6169B)
a
BÒiÑ! ã @ sb d Z ddlZddlmZ ddlmZ ddlmZ G dd„ dejƒZG d d
„ d
ƒZG dd„ dƒZ dS )
zI
Classes and algorithms for matching requested access to access vectors.
é Né )Úaccess)Úobjectmodel)Úutilc @ s e Zd Zddd„Zdd„ ZdS )ÚMatchNr c C s || _ || _d| _d | _d S ©NF)Ú interfaceÚdistÚinfo_dir_changeÚ__hash__)Úselfr r © r
ú5/usr/lib/python3.9/site-packages/sepolgen/matching.pyÚ__init__ s zMatch.__init__c C sD z$| j | jf}|j |jf}|||ƒW S ttfy> t Y S 0 d S ©N)r r
ÚAttributeErrorÚ TypeErrorÚNotImplemented)r ÚotherÚmethodÚaÚbr
r
r Ú_compare( s zMatch._compare)Nr )Ú__name__Ú
__module__Ú__qualname__r r r
r
r
r r s
r c @ sH e Zd ZdZdd„ Zdd„ Zdd„ Zdd „ Zd
d„ Zdd
„ Z dd„ Z
dS )Ú MatchListé– c C s$ g | _ g | _| j| _d| _d | _d S r )ÚchildrenÚbastardsÚDEFAULT_THRESHOLDÚ thresholdÚallow_info_dir_changeÚav©r r
r
r r 3 s
zMatchList.__init__c C s, t | jƒr| jd S t | jƒr(| jd S d S ©Nr ©Úlenr r r$ r
r
r Úbest<