Sh3ll
OdayForums


Server : Apache
System : Linux server1.cgrithy.com 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64
User : nobody ( 99)
PHP Version : 8.1.23
Disable Function : NONE
Directory :  /usr/lib/python2.7/site-packages/tuned/utils/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/lib/python2.7/site-packages/tuned/utils/polkit.pyc
�
��\c@s>ddlZddlZejj�Zddd��YZdS(i����NtpolkitcBseZd�Zd�ZRS(cCsLtj�|_|jjdddt�|_tj|jdd�|_dS(Nsorg.freedesktop.PolicyKit1s%/org/freedesktop/PolicyKit1/Authoritytfollow_name_owner_changestdbus_interfaces$org.freedesktop.PolicyKit1.Authority(tdbust	SystemBust_bust
get_objecttTruet_proxyt	Interfacet
_authority(tself((s6/usr/lib/python2.7/site-packages/tuned/utils/polkit.pyt__init__sc
Cs|dks|dkrtSi}d}d}di|d6f}y&|jj|||||�d}Wn�tjjtfk
r�}tj	d|�y|j
j|�}	Wn+tjjk
r�}tj	d|�dSX|	dkr�d	Sd
SnX|r�dSdS(s�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
		itssystem-bus-nametnameiserror querying polkit: %ss,error using falback authorization method: %si����ii����N(tNonetFalseR
tCheckAuthorizationRt
exceptionst
DBusExceptiont
ValueErrortlogterrorRt
get_unix_user(
Rtsendert	action_idtdetailstflagstcancellation_idtsubjecttrettetuid((s6/usr/lib/python2.7/site-packages/tuned/utils/polkit.pytcheck_authorizations&	&(t__name__t
__module__RR!(((s6/usr/lib/python2.7/site-packages/tuned/utils/polkit.pyRs	((Rt
tuned.logsttunedtlogstgetRR(((s6/usr/lib/python2.7/site-packages/tuned/utils/polkit.pyt<module>s

ZeroDay Forums Mini