| Server IP : 209.205.66.10 / Your IP : 216.73.216.173 Web Server : Apache/2.4.52 (Ubuntu) System : Linux ammon 5.15.0-186-generic #196-Ubuntu SMP Sat Jun 20 16:09:34 UTC 2026 x86_64 User : ( 1006) PHP Version : 8.5.8 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/aptdaemon/__pycache__/ |
Upload File : |
o
T@3b� � @ s� d Z dZdZddlZddlmZmZmZ ddlm Z m
Z
dZd Zd
Z
dZdZd
ZdZdZdZdZdZdZdZdZdZ d"dd�Z d"dd�Zd#dd�Zd#dd�Zed#dd��Zed#d d!��ZdS )$zHProvides access to PolicyKit privilege mangement using gdefer Deferreds.z%Sebastian Heinlein <devel@glatzor.de>)�check_authorization_by_name�check_authorization_by_pid�get_pid_from_dbus_name�get_uid_from_dbus_name�!CHECK_AUTH_ALLOW_USER_INTERACTION�CHECK_AUTH_NONE�PK_ACTION_ADD_REMOVE_VENDOR_KEY�PK_ACTION_CANCEL_FOREIGN�PK_ACTION_CHANGE_REPOSITORY�PK_ACTION_CHANGE_CONIFG�!PK_ACTION_GET_TRUSTED_VENDOR_KEYS�PK_ACTION_INSTALL_FILE�$PK_ACTION_INSTALL_OR_REMOVE_PACKAGES�(PK_ACTION_INSTALL_PACKAGES_FROM_NEW_REPO�/PK_ACTION_INSTALL_PACKAGES_FROM_HIGH_TRUST_REPO�$PK_ACTION_INSTALL_PURCHASED_PACKAGES�PK_ACTION_UPDATE_CACHE�PK_ACTION_UPGRADE_PACKAGES�PK_ACTION_SET_PROXY�PK_ACTION_CLEAN� N)�Deferred�inline_callbacks�return_value� )�NotAuthorizedError�AuthorizationFailedz)org.debian.apt.install-or-remove-packagesz)org.debian.apt.install-purchased-packagesz-org.debian.apt.install-packages-from-new-repoz/org.debian.apt.install-packages.high-trust-repozorg.debian.apt.install-filezorg.debian.apt.upgrade-packageszorg.debian.apt.update-cachezorg.debian.apt.cancel-foreignz&org.debian.apt.get-trusted-vendor-keysz org.debian.apt.change-repositoryzorg.debian.apt.change-configzorg.debian.apt.set-proxyzorg.debian.apt.clean�Q c C � dd| if}t |||||�S )a� Check if the given sender is authorized for the specified action.
If the sender is not authorized raise NotAuthorizedError.
Keyword arguments:
dbus_name -- D-Bus name of the subject
action_id -- the PolicyKit policy name of the action
timeout -- time in seconds for the user to authenticate
bus -- the D-Bus connection (defaults to the system bus)
flags -- optional flags to control the authentication process
zsystem-bus-name�name��_check_authorization)� dbus_name� action_id�timeout�bus�flags�subject� r'