package eio

  1. Overview
  2. Docs
Effect-based direct-style IO API for OCaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

eio-1.4.tbz
sha256=ba11ad486f492130dbb486f2b3bdc4905643f10016806ddf86e9a34e4346aaa5
sha512=57ef2c137ccdc26d8029e636b6a4ee92da7c6b2f35954946bd56ca595d6947a8ec42f6f83f8552f73d6719e6ce2314cae2e2fad1686a387522935e6f90e9a8d9

doc/eio.unix/Eio_unix/Cap/index.html

Module Eio_unix.CapSource

Capsicum security.

Sourceval enter : unit -> (unit, [ `Not_supported ]) result

Call cap_enter.

Once in capability mode, access to global name spaces, such as file system or IPC name spaces, is prevented by the operating system. A program can call this after opening any directories, files or network sockets that it will need, to prevent accidental access to other resources.

The standard environment directories Eio.Stdenv.fs and Eio.Stdenv.cwd cannot be used after calling this, but directories opened from them via Eio.Path.with_subtree will continue to work.