Interception
Each feature of the special examination room stands between the pupil and what they ask for.
The pupil reaches for a worksheet or rings out on the telephone, and meets the room's check on the way. The clock is different: it stands in nobody's way and only ends the time, and today it stops nobody. Nobody uses this room yet when the teacher picks up the rule sheet for each question. This page tells how an earlier version of the room worked.
Where this page names a Phobos layer or script, it describes the scripts Ares used to bundle, which it no longer ships. Current Phobos works differently; see the Phobos documentation.
What it is
Every Linux-based layer works by putting itself between the supervised program and the resource it requests, but each does so at a different level:
| Layer | Interception point |
|---|---|
| Bubblewrap | The kernel. A mount namespace gives the process a different view of the file system. |
| LD-Preload Firewall | The dynamic linker. Socket symbols resolve to libnetblocker.so before they reach libc. |
| Timeout | Signal delivery. The wrapper sends a signal once the budget is spent. |
This is the same idea as a pointcut in the aspect-oriented programming (AOP) layer, moved outside the Java Virtual Machine (JVM).
Further reading
ld.so(8)— Linux manual pagemount_namespaces(7)— Linux manual page- containers/bubblewrap — source repository