+
    ,iD
  c                   s    ^ 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# )i    )	dataclass)ContextFSUse)ContextWrapper)DiffResultDescriptor)
DifferenceDifferenceResultWrapperT)ZfrozenZorderc                   s0   a  ] tR t^t o RtV 3R ltRtV tR# )ModifiedFSUsez+Difference details for a modified fs_use_*.c                s>   < V ^8  d   Qh/ S[ ;R&   S[;R&   S[;R&   # )   ruleZadded_contextZremoved_context)r   r   Zformat__classdict__   "9/usr/lib64/python3.14/site-packages/setools/diff/fsuse.py__annotate__ZModifiedFSUse.__annotate__   s+     
 K          N)__name__
__module____qualname____firstlineno____doc__Z__annotate_func____static_attributes____classdictcell__r      @r   r   r      s      6  r   r   c                   s   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# )FSUsesDifferencez@Determine the difference in fs_use_* rules between two policies.c                   < V ^8  d   QhRR/# r	   returnNr   r   r   r   r   FSUsesDifference.__annotate__   s     O Od Or   c                sJ   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 fs_use rules between the policies.z%Generating fs_use_* differences from z to c              3   8   "   T F  p\        V4      x  K  	  R # 5iNFSUseWrapperZ.0fs   & r   	<genexpr>0FSUsesDifference.diff_fs_uses.<locals>.<genexpr>#   s     C(B"\"(B   c              3   r    r!   r"   r$   r&   r   r'   r(   $   s     D(C"\"(Cr)   N)logZinfoZleft_policyZright_policyZ	_set_diffZfs_usesadded_fs_usesremoved_fs_usesZlistr   modified_fs_usesr   contextZappend)selfZmatchedZ	left_ruleZ
right_rules   &   r   diff_fs_usesZFSUsesDifference.diff_fs_uses   s     	3D4D4D3ET$J[J[I\]	_ =ANNC(8(8(@(@(BCD(9(9(A(A(CD=F9D0' !%] 3 5%,!I i//0N:CUCU4VV%%,,]9;E;M;M;D;L;L.N O	 &-r   c                r   r   r   r   r   r   r   r   7   s     " "T "r   c                sH    V P                   P                  R4       V =V =V =R# )z%Reset diff results on policy changes.z#Resetting fs_use_* rule differencesN)r*   Zdebugr+   r,   r-   r/      &r   _reset_diffZFSUsesDifference._reset_diff7   s%    <= !r   )r+   r-   r,   N)r   r   r   r   r   r0   r   r   r+   r,   r   r-   r3   r   r   r   r   r   r   r      sN     JO O( )/=M*51,?O+M:<H
" "r   r   c                   sL   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 fs_use_* rules to allow set operations.c                s$   < V ^8  d   QhRS[ RR/# )r	   r
   r   N)r   r   r   r   r   ZFSUseWrapper.__annotate__E   s      U t r   c                s    Wn         VP                  V n        VP                  V n        \        VP                  4      V n        \        V4      V n        R # r!   )originruletyper%   r   r.   Zhashkey)r/   r
      &&r   __init__ZFSUseWrapper.__init__E   s8    ''%dll3:r   c                s    V P                   # r!   r6   r1   r2   r   __hash__ZFSUseWrapper.__hash__L   s    xxr   c                s4    V P                   VP                   8  # r!   r9   r/   Zotherr7   r   __lt__ZFSUseWrapper.__lt__O   s    xx%))##r   c                sv    V P                   VP                   8H  ;'       d    V P                  VP                  8H  # r!   )r5   r%   r;   r7   r   __eq__ZFSUseWrapper.__eq__R   s*    }}.FF477ehh3FFr   )r.   r%   r6   r4   r5   N)r5   r%   r.   )r   r   r   r   r   Z	__slots__r8   r:   r<   r=   r   r   r   r   r   r#   r#   ?   s-     6-I $G Gr   r#   N)Zdataclassesr    Z	policyrepr   r   r.   r   Zdescriptorsr   Z
differencer   r   r   r   r   r#   r   r   r   <module>r>      s[   
 " & # - = = $d#$  $$"z $"NG75> Gr   