/usr/lib64/python3.9/site-packages/setools/diff/__pycache__
NameSizeModeActions
bool.cpython-39.opt-1.pyc26170644editdlrm
bool.cpython-39.pyc26170644editdlrm
bounds.cpython-39.opt-1.pyc39770644editdlrm
bounds.cpython-39.pyc39770644editdlrm
commons.cpython-39.opt-1.pyc21610644editdlrm
commons.cpython-39.pyc21610644editdlrm
conditional.cpython-39.opt-1.pyc16900644editdlrm
conditional.cpython-39.pyc16900644editdlrm
constraints.cpython-39.opt-1.pyc73040644editdlrm
constraints.cpython-39.pyc75810644editdlrm
context.cpython-39.opt-1.pyc15900644editdlrm
context.cpython-39.pyc15900644editdlrm
default.cpython-39.opt-1.pyc34020644editdlrm
default.cpython-39.pyc34020644editdlrm
descriptors.cpython-39.opt-1.pyc12300644editdlrm
descriptors.cpython-39.pyc12300644editdlrm
difference.cpython-39.opt-1.pyc55420644editdlrm
difference.cpython-39.pyc57060644editdlrm
fsuse.cpython-39.opt-1.pyc30520644editdlrm
fsuse.cpython-39.pyc30520644editdlrm
genfscon.cpython-39.opt-1.pyc31510644editdlrm
genfscon.cpython-39.pyc31510644editdlrm
ibendportcon.cpython-39.opt-1.pyc31690644editdlrm
ibendportcon.cpython-39.pyc31690644editdlrm
ibpkeycon.cpython-39.opt-1.pyc31430644editdlrm
ibpkeycon.cpython-39.pyc31430644editdlrm
initsid.cpython-39.opt-1.pyc21960644editdlrm
initsid.cpython-39.pyc21960644editdlrm
mls.cpython-39.opt-1.pyc98000644editdlrm
mls.cpython-39.pyc98000644editdlrm
mlsrules.cpython-39.opt-1.pyc39380644editdlrm
mlsrules.cpython-39.pyc40690644editdlrm
netifcon.cpython-39.opt-1.pyc32390644editdlrm
netifcon.cpython-39.pyc32390644editdlrm
nodecon.cpython-39.opt-1.pyc30510644editdlrm
nodecon.cpython-39.pyc30510644editdlrm
objclass.cpython-39.opt-1.pyc29710644editdlrm
objclass.cpython-39.pyc29710644editdlrm
polcap.cpython-39.opt-1.pyc15400644editdlrm
polcap.cpython-39.pyc15400644editdlrm
portcon.cpython-39.opt-1.pyc30840644editdlrm
portcon.cpython-39.pyc30840644editdlrm
properties.cpython-39.opt-1.pyc17040644editdlrm
properties.cpython-39.pyc17040644editdlrm
rbacrules.cpython-39.opt-1.pyc54470644editdlrm
rbacrules.cpython-39.pyc56220644editdlrm
roles.cpython-39.opt-1.pyc28950644editdlrm
roles.cpython-39.pyc28950644editdlrm
terules.cpython-39.opt-1.pyc157450644editdlrm
terules.cpython-39.pyc157450644editdlrm
typeattr.cpython-39.opt-1.pyc30580644editdlrm
typeattr.cpython-39.pyc30580644editdlrm
types.cpython-39.opt-1.pyc36940644editdlrm
types.cpython-39.pyc36940644editdlrm
typing.cpython-39.opt-1.pyc5910644editdlrm
typing.cpython-39.pyc5910644editdlrm
users.cpython-39.opt-1.pyc37220644editdlrm
users.cpython-39.pyc37220644editdlrm
__init__.cpython-39.opt-1.pyc20810644editdlrm
__init__.cpython-39.pyc20810644editdlrm
Edit: /usr/lib64/python3.9/site-packages/setools/diff/__pycache__/bounds.cpython-39.pyc (3977B)
a qqe@sddlmZmZmZmZddlmZmZmZddl m Z ddl m Z m Z ddlmZGdd d eZGd d d e ZGd d d e eZdS))castList NamedTupleOptional)BoundsBoundsRuletypeType)DiffResultDescriptor) DifferenceWrapper)type_wrapper_factoryc@s*eZdZUdZeed<eed<eed<dS)ModifiedBoundsz.Difference details for a modified bounds rule.ruleZ added_boundZ removed_boundN)__name__ __module__ __qualname____doc__r__annotations__r rr9/usr/lib64/python3.9/site-packages/setools/diff/bounds.pyrs rc@s|eZdZUdZedZedZedZdZe e e e d<dZ e e e e d<ddddZddd d Zddd d ZdS) BoundsDifferencez9Determine the difference in *bounds between two policies.diff_typeboundsN_left_typebounds_right_typebounds)returncCs|jd||jdus&|jdur.||jddttt |jDddttt |jDddd\|_ |_ }g|_ |D]4\}}t |jt |jkr|j t||j|jqdS) z@Generate the difference in typebound rules between the policies.zJGenerating typebounds differences from {0.left_policy} to {0.right_policy}Ncss|]}t|VqdSN BoundsWrapper.0crrr -z3BoundsDifference.diff_typebounds..css|]}t|VqdSrrr rrrr#.r$cSs t|jSr)strchild)brrr/r$z2BoundsDifference.diff_typebounds..key)loginfoformatrr_create_typebound_listsZ _set_diffrrradded_typeboundsremoved_typeboundsmodified_typeboundsrparentappendr)selfZmatched_typeboundsZ left_boundZ right_boundrrrr#s    z BoundsDifference.diff_typeboundscCsg|_|jD]2}|jtjkr.|j|q|jd |jqg|_ |j D]2}|jtjkrr|j |qT|jd |jqTdS)z$Create rule lists for both policies.z/Unknown rule type: {0} (This is an SETools bug)N) rZ left_policyZboundsruletyperZ typeboundsr3r+errorr-rZ right_policyr4rrrrr.;s    z(BoundsDifference._create_typebound_listscCs(|jdd|_d|_d|_d|_dS)z%Reset diff results on policy changes.z!Resetting all *bounds differencesN)r+debugr/r0rrr4rrr _reset_diffMs  zBoundsDifference._reset_diff)rrrrr r/r0r1rrrrrrrr.r:rrrrrs rc@s<eZdZdZdZeddddZddZd d Zd d Z dS) rzWrap *bounds for diff purposes.)r5r2r&N)rrcCs4||_|j|_t|j|_t|j|_t||_dSr)originr5rr2r&hashr*r7rrr__init__^s   zBoundsWrapper.__init__cCs|jSrr)r9rrr__hash__eszBoundsWrapper.__hash__cCs |j|jkSrr)r4otherrrr__lt__hszBoundsWrapper.__lt__cCs|j|jko|j|jkSr)r5r&r?rrr__eq__ks  zBoundsWrapper.__eq__) rrrr __slots__rr=r>rArBrrrrrXs rN)typingrrrrZ policyreprrr Z descriptorsr differencer r typesrrrrrrrrs   A