403Webshell
Server IP : 3.138.164.131  /  Your IP : 216.73.216.136
Web Server : Apache
System : Linux ns1.techtime.me 4.18.0-147.8.1.el8.lve.1.x86_64 #1 SMP Mon Jun 29 09:55:57 EDT 2020 x86_64
User : injazaat ( 1471)
PHP Version : 8.1.20
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib/python3.6/site-packages/tuned/utils/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3.6/site-packages/tuned/utils/__pycache__/polkit.cpython-36.pyc
3

��c��@s,ddlZddlZejj�ZGdd�d�ZdS)�Nc@seZdZdd�Zdd�ZdS)�polkitcCs4tj�|_|jjdddd�|_tj|jdd�|_dS)Nzorg.freedesktop.PolicyKit1z%/org/freedesktop/PolicyKit1/AuthorityT)Zfollow_name_owner_changesz$org.freedesktop.PolicyKit1.Authority)Zdbus_interface)�dbusZ	SystemBus�_busZ
get_object�_proxyZ	Interface�
_authority)�self�r�/usr/lib/python3.6/polkit.py�__init__s
zpolkit.__init__c
Cs�|dks|dkrdSi}d}d}dd|if}y|jj|||||�d}Wn�tjjtfk
r�}zhtjd|�y|jj	|�}	Wn2tjjk
r�}ztjd	|�dSd}~XnX|	dkr�d
SdSWYdd}~XnX|r�dSdS)
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�������)
rZCheckAuthorizationr�
exceptionsZ
DBusException�
ValueError�log�errorrZ
get_unix_user)
rZsenderZ	action_idZdetails�flagsZcancellation_idZsubject�ret�eZuidrrr	�check_authorizations&	zpolkit.check_authorizationN)�__name__�
__module__�__qualname__r
rrrrr	rsr)rZ
tuned.logsZtunedZlogs�getrrrrrr	�<module>s


Youez - 2016 - github.com/yon3zu
LinuXploit