MOON
Server: Apache
System: Linux s5.yayogua.com.py 6.12.0-124.55.3.el10_1.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:54:02 EDT 2026 x86_64
User: sanbercountryclu (1012)
PHP: 8.2.33
Disabled: NONE
Upload Files
File: //lib/python3.12/site-packages/tuned/utils/__pycache__/polkit.cpython-312.pyc
�

�]�i���\�ddlZddlZejj	�ZGd�d�Zy)�Nc��eZdZd�Zd�Zy)�polkitc���tj�|_|jjddd��|_tj
|jd��|_y)Nzorg.freedesktop.PolicyKit1z%/org/freedesktop/PolicyKit1/AuthorityT)�follow_name_owner_changesz$org.freedesktop.PolicyKit1.Authority)�dbus_interface)�dbus�	SystemBus�_bus�
get_object�_proxy�	Interface�
_authority)�selfs �7/usr/lib/python3.12/site-packages/tuned/utils/polkit.py�__init__zpolkit.__init__sN���n�n��$�)��	�	�$�$�%A�Cj�IM�$�N�$�+��N�N�4�;�;�?e�f�$�/�c���|�|�yi}d}d}dd|if}	|jj|||||�d}|rdSdS#tjjt
f$r�}tjd|z�	|jj|�}	nF#tjj$r&}tjd	|z�Yd}~Yd}~y
d}~wwxYw|	dk(rYd}~yYd}~yd}~wwxYw)
z�Check 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
		NF��zsystem-bus-name�namerzerror querying polkit: %sz-error using fallback authorization method: %s�������)
r�CheckAuthorizationr�
exceptions�
DBusException�
ValueError�log�errorr
�
get_unix_user)
r�sender�	action_id�details�flags�cancellation_id�subject�ret�e�uids
          r�check_authorizationzpolkit.check_authorizations����^�y�(�
��'�
�%��/�
��&� 1�2�'�
�	
���	+�	+�G�Y���P_�	`�ab�	c�3����q����/�/�
'�
'��	4���9�9�
(�1�
,�-��
�)�)�
!�
!�&�
)�C��
�/�/�
'�
'���I�I�=��A�B�
�2����
�Q�h��
���s?�";�#C-�C(�7B�C(�C�0C�C(�C�C(�(C-N)�__name__�
__module__�__qualname__rr*�rrrrs
��g�
rr)r�
tuned.logs�tuned�logs�getrrr.rr�<module>r3s%�����j�j�n�n���#�#r