Policy_kitPolicyKit interface
val not_authorized : OBus_error.nameException raised by services when trying to perform an action for which we do not have authorization from PolicyKit
val obtain_authorization :
action_id:string ->
?xid:int ->
pid:int ->
unit ->
bool Lwt.tobtain_authorization ~action_id ~xid ~pid tries to obtain authorization for action_id. It returns whether it succeed or not.