76
81
action_id -- the PolicyKit policy name of the action
77
82
timeout -- time in seconds for the user to authenticate
78
83
bus -- the D-Bus connection (defaults to the system bus)
80
86
subject = ("unix-process", {"pid": pid})
81
87
return _check_authorization(subject, action_id, timeout, bus)
83
def _check_authorization(subject, action_id, timeout, bus):
89
def _check_authorization(subject, action_id, timeout, bus, flags=None):
84
90
def policykit_done((authorized, challenged, auth_details)):
86
92
deferred.callback(auth_details)