%PDF- %PDF-
Direktori : /usr/lib/python3/dist-packages/aptdaemon/__pycache__/ |
Current File : //usr/lib/python3/dist-packages/aptdaemon/__pycache__/policykit1.cpython-312.pyc |
� ��kd� � �� � d Z dZdZddlZddlmZmZmZ ddlm Z m Z dZd Zd Z dZdZd ZdZdZdZdZdZdZdZdZdZ dd�Z dd�Zdd�Zdd�Zedd�� Zedd�� Zy)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.cleanc �, � 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�subjects �6/usr/lib/python3/dist-packages/aptdaemon/policykit1.pyr r @ s&