+
     Gi  c                   s^    ^ RI t ^ RIt]P                  P	                  4       t ! R R4      tR# )i    Nc                   s,   a  ] tR t^t o R tR tRtV tR# )polkitc                s    \         P                  ! 4       V n        V P                  P                  R RRR7      V n        \         P
                  ! V P                  RR7      V n        R# )zorg.freedesktop.PolicyKit1z%/org/freedesktop/PolicyKit1/AuthorityT)Zfollow_name_owner_changesz$org.freedesktop.PolicyKit1.Authority)Zdbus_interfaceN)dbusZ	SystemBus_busZ
get_object_proxyZ	Interface
_authority)selfs   &7/usr/lib/python3.14/site-packages/tuned/utils/polkit.py__init__Zpolkit.__init__   sN    nn$)		$$%ACj  IM$  N$+NN4;;?ef$/    c                s"   Ve   Vf   R# / p^pRpRRV/3p V P                   P                  WbW4V4      ^ ,          pT'       d   ^# ^ #   \        P                  P                  \
        3 d   p\        P                  RT,          4        T P                  P                  T4      p	MO  \        P                  P                   d.   p\        P                  RT,          4       Ru Rp?u Rp?# Rp?ii ; iT	^ 8X  d    Rp?^# R	u Rp?# Rp?ii ; i)
zCheck authorization, return codes:
1  - authorized
2  - polkit error, but authorized with fallback method
0  - unauthorized
-1 - polkit error and unauthorized by the fallback method
-2 - polkit error and unable to use the fallback method
NFZ zsystem-bus-nameZnamezerror querying polkit: %sz-error using fallback authorization method: %sii)
r   ZCheckAuthorizationr   Z
exceptionsZDBusExceptionZ
ValueErrorlogZerrorr   Zget_unix_user)
r   ZsenderZ	action_idZdetailsZflagsZcancellation_idZsubjectZretZeZuids
   &&&       r   check_authorizationZpolkit.check_authorization   s     ^y(
'
%/& 12'		+	+GP_	`ab	c3 q //
'
'	4 99(1,-
))
!
!&
)C
//
'
' II=ABII 
QhIsY   $A %D-D	
B&%D	&C2C-"C2#D	'D-C22
D	D	D	D)r   r   r   N)Z__name__Z
__module__Z__qualname__Z__firstlineno__r   r
   Z__static_attributes__Z__classdictcell__)Z__classdict__s   @r   r    r       s     g
 r   r    )r   Z
tuned.logsZtunedZlogsZgetr	   r    ) r   r   <module>r      s%     jjnn# #r   