IT lexicon › Security › sysjail

sysjail

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

An attempt to give OpenBSD and NetBSD something like FreeBSD jails without touching the kernel — which turned out to be precisely what killed it.

Kristaps Džonsons, later the author of mandoc, wrote sysjail in the mid-2000s. Rather than building isolation into the kernel as FreeBSD jails do, it sat on top of systrace and vetted every system call from a jailed process before the kernel got to run it. You could install it like any other program, which was the whole selling point.

In 2007 Robert Watson published a paper on vulnerabilities in exactly this kind of wrapper: arguments are checked at one moment and read by the kernel at another, and a second thread can rewrite them in between. It is a textbook TOCTOU bug and cannot be fixed from outside the kernel. The project was shut down in 2009 with a blunt notice that it could no longer be considered secure.

← Back to the lexicon