Skip to main content

Wrapper

Simple Story

The features of the special examination room sit in its walls and its door, out of the pupil's reach.

That is the whole point. The teacher's checks work inside the room, beside the pupils. The room's features work from outside, so even a pupil who gains control over everything inside cannot switch them off. 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.

Who is who

Historical design

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​

All three layers are wrappers: a process that configures its restriction and then executes the next layer, with the supervised build command innermost.

This is the property that distinguishes Linux-based security from the aspect-oriented programming (AOP) and architecture layers. Those run inside the Java Virtual Machine (JVM) they protect. A wrapper runs outside it, so the supervised process cannot switch the restriction off, however much control it gains over its own JVM.

The layers are composed by phobos.sh and each can be disabled independently with --no-timeout, --no-network and --no-filesystem.

Further reading​