+
        
                         ^ RI Ht ^RIHtHt ^RIHt ^RIHt ^RI	H
t
HtHt ]! RRR7       ! R R	]4      4       t ! R
 R]
4      t ! R R]],          4      tR# )    )	dataclass)ContextGenfscon)ContextWrapper)DiffResultDescriptor)
DifferenceDifferenceResultWrapperT)frozenorderc                   0   a  ] tR t^t o RtV 3R ltRtV tR# )ModifiedGenfsconz,Difference details for a modified genfscons.c                >   < V ^8  d   Qh/ S[ ;R&   S[;R&   S[;R&   # )   ruleadded_contextremoved_context)r   r   )format__classdict__s   "</usr/lib64/python3.14/site-packages/setools/diff/genfscon.py__annotate__ModifiedGenfscon.__annotate__   s+     
 N          N)__name__
__module____qualname____firstlineno____doc____annotate_func____static_attributes____classdictcell__r   s   @r   r   r      s      7  r   r   c                      a  ] tR t^t o RtV 3R lR lt]],          ! ]4      t]],          ! ]4      t	]]
,          ! ]4      tV 3R lR ltRtV tR# )GenfsconsDifferencez@Determine the difference in genfscon rules between two policies.c                   < V ^8  d   QhRR/# r   returnNr   )r   r   s   "r   r    GenfsconsDifference.__annotate__   s     T T Tr   c                J   V P                   P                  RV P                   RV P                   24       V P	                  R V P                  P                  4        4       R V P                  P                  4        4       4      w  V n        V n        p\        \        ,          ! 4       V n
        V Fn  w  r#\        VP                  4      \        VP                  4      8w  g   K4  V P                  P                  \        VVP                  VP                  4      4       Kp  	  R# )z?Generate the difference in genfscon rules between the policies.z%Generating genfscon differences from z to c              3   8   "   T F  p\        V4      x  K  	  R # 5iNGenfsconWrapper.0fss   & r   	<genexpr>5GenfsconsDifference.diff_genfscons.<locals>.<genexpr>#   s     H+GR_R  +G   c              3   8   "   T F  p\        V4      x  K  	  R # 5ir,   r-   r/   s   & r   r2   r3   $   s     I+HR_R  +Hr4   N)loginfoleft_policyright_policy	_set_diff	genfsconsadded_genfsconsremoved_genfsconslistr   modified_genfsconsr   contextappend)selfmatched	left_rule
right_rules   &   r   diff_genfscons"GenfsconsDifference.diff_genfscons   s     	3D4D4D3ET$J[J[I\]	_ AEH4+;+;+E+E+GHI4+<+<+F+F+HIAK=d4g #''7"8":%,!I i//0N:CUCU4VV''../?	@J@R@R@I@Q@Q0S T	 &-r   c                   < V ^8  d   QhRR/# r'   r   )r   r   s   "r   r   r)   7   s     $ $T $r   c                H    V P                   P                  R4       V =V =V =R# )z%Reset diff results on policy changes.z#Resetting genfscon rule differencesN)r6   debugr<   r=   r?   rB   s   &r   _reset_diffGenfsconsDifference._reset_diff7   s%    <= "#r   )r<   r?   r=   N)r   r   r   r   r   rF   r   r   r<   r=   r   r?   rL   r!   r"   r#   s   @r   r%   r%      sP     JT T( +84^DO,X6~F-.>?O
$ $r   r%   c                   L   a  ] tR t^?t o RtR	tV 3R lR ltR tR tR t	Rt
V tR# )
r.   z,Wrap genfscon rules to allow set operations.c                $   < V ^8  d   QhRS[ RR/# )r   r   r(   N)r   )r   r   s   "r   r   GenfsconWrapper.__annotate__E   s      X $ r   c                    Wn         VP                  V n        VP                  V n        VP                  V n        \	        VP
                  4      V n        \        V4      V n        R # r,   )originr1   pathfiletyper   r@   hashkey)rB   r   s   &&r   __init__GenfsconWrapper.__init__E   sC    ''II	%dll3:r   c                    V P                   # r,   rV   rK   s   &r   __hash__GenfsconWrapper.__hash__M   s    xxr   c                4    V P                   VP                   8  # r,   rZ   rB   others   &&r   __lt__GenfsconWrapper.__lt__P   s    xx%))##r   c                    V P                   VP                   8H  ;'       d;    V P                  VP                  8H  ;'       d    V P                  VP                  8H  # r,   )r1   rS   rT   r^   s   &&r   __eq__GenfsconWrapper.__eq__S   sK    ww%((" , ,II#, ,MMU^^+	,r   )r@   rT   r1   rV   rR   rS   N)r1   rS   rT   r@   )r   r   r   r   r   	__slots__rW   r[   r`   rc   r!   r"   r#   s   @r   r.   r.   ?   s+     65I $, ,r   r.   N)dataclassesr   	policyrepr   r   r@   r   descriptorsr   
differencer   r	   r
   r   r%   r.   r   r   r   <module>rj      sZ   
 " ) # - = = $d#'  $$$* $$N,gh' ,r   