package openbsd

  1. Overview
  2. Docs

Module Openbsd.UnveilSource

Wrapper around unveil(2) syscall on OpenBSD.

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

Sourceval supported : bool

boolean indicating if unveil(2) is supported.

Sourceval add : string -> string -> unit

add calls unveil(path, permissions).

  • raises Failure

    on others errors, with errno in string.

Sourceval lock : unit -> unit

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

  • raises Failure

    on others errors, with errno in string.

OCaml

Innovation. Community. Security.