OCIFBSD_SECURITY(3) FreeBSD Library Functions Manual OCIFBSD_SECURITY(3)

ocifbsd_securityocifbsd security policy and resource-limit library

#include <ocifbsd/security/rctl.h>
#include <ocifbsd/security/mac.h>

The ocifbsd_security library implements the security policy and resource-limit primitives used by ocifbsd(8) to constrain and label containers and jails. It is not a standalone program; it is linked into the main ocifbsd(8) binary and any external tooling that needs to manage RCTL rules, MAC labels, or seccomp-equivalent sandboxing on FreeBSD jails.

The library provides three functional areas:

The public API is declared across <ocifbsd/security/rctl.h> and <ocifbsd/security/mac.h>; see those headers for the full list of functions and data structures.

/etc/ocifbsd/security.conf
Security defaults (default MAC policy, default RCTL action).
/var/run/ocifbsd/rctl/
Per-jail RCTL rule snapshots (human-readable, the format produced by rctl(8) -j jail).

ocifbsd(8), rctl(8), mac(4), capsicum(4), jail(8), biba(4), mls(4)

The ocifbsd_security library first appeared in FreeBSD 16.0.

The ocifbsd_security library was developed by Klara, Inc. under sponsorship from

FreeBSD 15.1-STABLE June 5, 2026 OCIFBSD_SECURITY(3)