This file is indexed.

/usr/lib/ocaml/obus/policy_kit.mli is in libobus-ocaml-dev 1.1.5-3build1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
(*
 * policy_kit.mli
 * --------------
 * Copyright : (c) 2010, Jeremie Dimino <jeremie@dimino.org>
 * Licence   : BSD3
 *
 * This file is a part of obus, an ocaml implementation of D-Bus.
 *)

(** PolicyKit interface *)

val not_authorized : OBus_error.name
  (** Exception 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.t
  (** [obtain_authorization ~action_id ~xid ~pid] tries to obtain
      authorization for [action_id]. It returns whether it succeed or not.

      @param action_id PolicyKit action identifier; see PolKitAction
      @param xid X11 window ID for the top-level X11 window the dialog
             will be transient for
      @param pid Process ID to grant authorization to
  *)