IT lexicon › Security › Capsicum

Capsicum

Security På svenska → Updated: 2026-11-08

A capability framework in FreeBSD that lets a process give up access to global namespaces and keep only the file descriptors it already holds.

Robert Watson and Jonathan Anderson of Cambridge presented Capsicum at USENIX Security 2010, with Ben Laurie and Kris Kennaway of Google. It shipped in FreeBSD 9.0 and was enabled by default in 10.0. A program first opens what it needs, then calls cap_enter(); after that it can no longer open files by path, create sockets to arbitrary addresses or reach anything it isn't already holding.

Each file descriptor can also be trimmed to specific rights, so a file may be readable but not seekable. It is a more principled model than OpenBSD's pledge and more work to adopt, which explains why FreeBSD's own utilities were converted at a leisurely pace.

← Back to the lexicon