/usr/lib64/python3.6/site-packages/setools/__pycache__
NameSizeModeActions
boolquery.cpython-36.opt-1.pyc18480644editdlrm
boolquery.cpython-36.pyc18480644editdlrm
boundsquery.cpython-36.opt-1.pyc17090644editdlrm
boundsquery.cpython-36.pyc17090644editdlrm
categoryquery.cpython-36.opt-1.pyc15240644editdlrm
categoryquery.cpython-36.pyc15240644editdlrm
commonquery.cpython-36.opt-1.pyc17560644editdlrm
commonquery.cpython-36.pyc17560644editdlrm
constraintquery.cpython-36.opt-1.pyc45270644editdlrm
constraintquery.cpython-36.pyc45270644editdlrm
defaultquery.cpython-36.opt-1.pyc21700644editdlrm
defaultquery.cpython-36.pyc21700644editdlrm
descriptors.cpython-36.opt-1.pyc75330644editdlrm
descriptors.cpython-36.pyc77370644editdlrm
devicetreeconquery.cpython-36.opt-1.pyc23630644editdlrm
devicetreeconquery.cpython-36.pyc23630644editdlrm
dta.cpython-36.opt-1.pyc135500644editdlrm
dta.cpython-36.pyc135500644editdlrm
exception.cpython-36.opt-1.pyc88420644editdlrm
exception.cpython-36.pyc88420644editdlrm
fsusequery.cpython-36.opt-1.pyc28770644editdlrm
fsusequery.cpython-36.pyc28770644editdlrm
genfsconquery.cpython-36.opt-1.pyc30340644editdlrm
genfsconquery.cpython-36.pyc30340644editdlrm
ibendportconquery.cpython-36.opt-1.pyc30850644editdlrm
ibendportconquery.cpython-36.pyc30850644editdlrm
ibpkeyconquery.cpython-36.opt-1.pyc43180644editdlrm
ibpkeyconquery.cpython-36.pyc43180644editdlrm
infoflow.cpython-36.opt-1.pyc115970644editdlrm
infoflow.cpython-36.pyc115970644editdlrm
initsidquery.cpython-36.opt-1.pyc24650644editdlrm
initsidquery.cpython-36.pyc24650644editdlrm
iomemconquery.cpython-36.opt-1.pyc37580644editdlrm
iomemconquery.cpython-36.pyc37580644editdlrm
ioportconquery.cpython-36.opt-1.pyc37610644editdlrm
ioportconquery.cpython-36.pyc37610644editdlrm
mixins.cpython-36.opt-1.pyc64620644editdlrm
mixins.cpython-36.pyc64620644editdlrm
mlsrulequery.cpython-36.opt-1.pyc30250644editdlrm
mlsrulequery.cpython-36.pyc30250644editdlrm
netifconquery.cpython-36.opt-1.pyc25380644editdlrm
netifconquery.cpython-36.pyc25380644editdlrm
nodeconquery.cpython-36.opt-1.pyc36140644editdlrm
nodeconquery.cpython-36.pyc36140644editdlrm
objclassquery.cpython-36.opt-1.pyc29350644editdlrm
objclassquery.cpython-36.pyc29350644editdlrm
pcideviceconquery.cpython-36.opt-1.pyc27160644editdlrm
pcideviceconquery.cpython-36.pyc27160644editdlrm
permmap.cpython-36.opt-1.pyc119480644editdlrm
permmap.cpython-36.pyc121900644editdlrm
pirqconquery.cpython-36.opt-1.pyc26430644editdlrm
pirqconquery.cpython-36.pyc26430644editdlrm
polcapquery.cpython-36.opt-1.pyc13160644editdlrm
polcapquery.cpython-36.pyc13160644editdlrm
portconquery.cpython-36.opt-1.pyc43090644editdlrm
portconquery.cpython-36.pyc43090644editdlrm
query.cpython-36.opt-1.pyc10030644editdlrm
query.cpython-36.pyc10030644editdlrm
rbacrulequery.cpython-36.opt-1.pyc38350644editdlrm
rbacrulequery.cpython-36.pyc38350644editdlrm
rolequery.cpython-36.opt-1.pyc19880644editdlrm
rolequery.cpython-36.pyc19880644editdlrm
sensitivityquery.cpython-36.opt-1.pyc21660644editdlrm
sensitivityquery.cpython-36.pyc21660644editdlrm
terulequery.cpython-36.opt-1.pyc62800644editdlrm
terulequery.cpython-36.pyc62800644editdlrm
typeattrquery.cpython-36.opt-1.pyc21410644editdlrm
typeattrquery.cpython-36.pyc21410644editdlrm
typequery.cpython-36.opt-1.pyc28730644editdlrm
typequery.cpython-36.pyc28730644editdlrm
userquery.cpython-36.opt-1.pyc37230644editdlrm
userquery.cpython-36.pyc37230644editdlrm
util.cpython-36.opt-1.pyc47010644editdlrm
util.cpython-36.pyc47010644editdlrm
__init__.cpython-36.opt-1.pyc23920644editdlrm
__init__.cpython-36.pyc23920644editdlrm
Edit: /usr/lib64/python3.6/site-packages/setools/__pycache__/util.cpython-36.pyc (4701B)
3 ^D@s<ddZddZddZddZdd Zd d Zd d ZdS)cCs"|rt|jt|S||kSdS)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)boolsearchstr)objcriteriaregexr/usr/lib64/python3.6/util.py match_regexs r cCs|r ||kSt|j|SdS)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)rrequalrrr match_set%s r cs"|rfdd|DS|kSdS)z Match if the criteria is in the list, with optional regular expression matching. Parameters: obj The object to match. criteria The criteria to match. regex If regular expression matching should be used. csg|]}jt|r|qSr)rr).0m)rrr Bsz match_in_set..Nr)rrrr)rr match_in_set6s rcsF|r6|rfdd|jDStjj|jSn t||SdS)aK Match the object with optional regular expression and indirection. Parameters: obj The object to match. criteria The criteria to match. regex If regular expression matching should be used. indirect If object indirection should be used, e.g. expanding an attribute. csg|]}jt|r|qSr)rr)r o)rrrrUsz(match_indirect_regex..N)expandsetr r )rrZindirectrr)rrmatch_indirect_regexGs rcs*|rfdd|DSt|t|SdS)a" Match the object (a set) with either set comparisons (equality or intersection) or by regex matching of the set members. Regular expression matching will override the set equality option. Parameters: obj The object to match. (a set) criteria The criteria to match. equal If set equality should be used. Otherwise any set intersection will match. Ignored if regular expression matching is used. regex If regular expression matching should be used. csg|]}jt|r|qSr)rr)r r)rrrrmsz&match_regex_or_set..N)r r)rrr rr)rrmatch_regex_or_set\srcCs|rX|j|jko|jknpV|j|jko:|jknpV|j|jkoV|j|jkS|r|r|j|jkrx|j|jkp|j|jko|j|jkS|j|jko|j|jkSnp|r|r|j|jkr|j|jkp|j|jko|j|jkS|j|jko|j|jkSn|j|jko|j|jkSdS)aR Match ranges of objects. obj An object with attributes named "low" and "high", representing the range. criteria An object with attributes named "low" and "high", representing the criteria. subset If true, the criteria will match if it is a subset obj's range. overlap If true, the criteria will match if it overlaps any of the obj's range. superset If true, the criteria will match if it is a superset of the obj's range. proper If true, use proper superset/subset operations. No effect if not using set operations. N)ZlowZhigh)rrZsubsetZoverlapZsupersetZproperrrr match_rangers rcCs0|r ||kS|r||kS|r$||AS||kSdS)aX Match the an MLS level. obj The level to match. criteria The criteria to match. (a level) dom If true, the criteria will match if it dominates obj. domby If true, the criteria will match if it is dominated by obj. incomp If true, the criteria will match if it is incomparable to obj. Nr)rrZdomZdombyZincomprrr match_levels rN)r r rrrrrrrrrs !