restrictedversion Documentation on ocaml.org

Limit which system operations and which parts of the filesystem your program can access

Call it as early as possible in your program so that the rest of the code runs with reduced privileges. Currently, actual enforced restrictions are implemented for these operating systems:

  • OpenBSD
  • Linux (only filesystem view)

Even on other operating systems, you can still use restricted to document which privileges your program needs. Users can then test if your program respects these promises with tools such as pledge on Linux. Enjoy :)

Tags openbsd restricted
AuthorRemove Wingman <ocaml@rw8.addy.io>
LicenseAGPL-3.0-or-later
Published
Homepagehttps://codeberg.org/removewingman/restricted
Issue Trackerhttps://codeberg.org/removewingman/restricted/issues
MaintainerRemove Wingman <ocaml@rw8.addy.io>
Dependencies
Source [http] https://codeberg.org/removewingman/restricted/releases/download/v2.0.0/ocaml-restricted-2.0.0.tar.gz
md5=6547cefcfc520d4fe31e1f254e53459b
sha512=3b48e8a135dd1b72549245e986ee7b03330a7eb97ca42e6acbb23dc8ef2319287e41953ee84954aa431530a8e8508a45596838e7dfa676c1859b5a131932dbdc
Edithttps://github.com/ocaml/opam-repository/tree/master/packages/restricted/restricted.2.0.0/opam
No package is dependent