package openbsd

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Wrapper around unveil(2) syscall on OpenBSD.

see https://man.openbsd.org/unveil.2 for details.

val supported : bool

boolean indicating if unveil(2) is supported.

val add : string -> string -> unit

add calls unveil(path, permissions).

  • raises Invalid_argument

    on EINVAL error.

  • raises Failure

    on others errors, with errno in string.

val lock : unit -> unit

lock calls unveil(NULL, NULL) and lock any futher usage of add.

  • raises Invalid_argument

    on EINVAL error.

  • raises Failure

    on others errors, with errno in string.

OCaml

Innovation. Community. Security.