/usr/lib/python3.9/site-packages/sepolgen/__pycache__
Edit: /usr/lib/python3.9/site-packages/sepolgen/__pycache__/matching.cpython-39.pyc (6169B)
a
Bi! @ sb d Z ddlZddlmZ ddlmZ ddlmZ G dd dejZG d d
d
ZG dd dZ dS )
zI
Classes and algorithms for matching requested access to access vectors.
N )access)objectmodel)utilc @ s e Zd ZdddZdd ZdS )MatchNr c C s || _ || _d| _d | _d S NF) interfacedistinfo_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 TypeErrorNotImplemented)r othermethodabr
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 )childrenbastardsDEFAULT_THRESHOLD thresholdallow_info_dir_changeavr r
r
r r 3 s
zMatchList.__init__c C s, t | jr| jd S t | jr(| jd S d S Nr lenr r r$ r
r
r best<