Warning: session_start(): Session cannot be started after headers have already been sent in /home/tvrreohg/public_html/manga.php on line 13
3 À<×e˜ã@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 |ƒd Sd}~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 Ús