val superuser : t
The superuser
role has all privileges
val of_domain : int -> t
The role associated with a specific domain id
restrict role domid
returns a new role which contains the subset of role
which applies to domain domid
type permission =
val check : t -> permission -> Xs_protocol.ACL.t -> unit
check role permission acl
throws Permission_denied
if role
does not have permission
according to the access control list acl
val has : t -> permission -> unit
has role permission
throws Permission_denied
if role
does not have permission