Definition
A runtime pipeline figure is a diagram of the stages that handle one event while a system runs, in order: the event arrives; a decision stage checks it against a policy, meaning a set of rules, and produces a verdict, such as allow or deny; later stages then act. A decision’s scope is the set of actions that the verdict can still control: actions that have not yet happened and that wait for the verdict and obey it. Earlier actions, and actions that do not wait, are outside the scope.
Where it fits
Main entry: Observation versus enforcement (§1.20).
The entry on observation versus enforcement draws the line this figure needs. An observer reports an action, and the action happens whatever the report says. An enforcer decides whether the action may happen, and the code that performs the action waits for the decision and obeys it. In a pipeline figure, check two things for every side effect, meaning every change visible outside the decision stage, such as sending a reply, writing to storage or changing the state of a connection: whether its box comes after the verdict on the same path, and whether an arrow shows it waiting for the verdict.
Suppose a radio link carries two application channels, two separate conversations over the same connection. The stack opens the first channel and then calls a registered function to report the event. A callback §14.22 used only for observation can record that the channel opened and return. A callback with enforcement authority can ask the policy for a decision. Suppose the firmware defines its response to a denial as requesting closure of this channel. The callback puts that request on a queue and returns. The channel was already open when the decision was made. The closure takes effect later, when the stack processes the request, and the other channel can continue to use the link. To establish that closure actually completed, observe the stack or peer reporting it. A log containing only the verdict and the queued request establishes those two earlier steps.
The policy may be replaced while events are being handled. Each verdict should then come from one coherent snapshot §9.23, a set of rules that all belong to one version of the policy. A common way to ensure this is to publish each new version through one pointer and to free an old version only after every reader that might still use it has finished; read-copy update §9.20 (RCU) is a mechanism built on this rule. Publishing in this way gives each evaluation one coherent version, provided that the evaluation reads the pointer once and uses only the version it found. It does not make two evaluations, or an evaluation together with the input and output around it, into one transaction §8.7, a group of steps that takes effect entirely or not at all: if one event causes two evaluations, the policy can change between them unless both use the same snapshot.
All data in this entry’s examples are invented.
Limits and common mistakes
A pipeline figure shows the paths its author drew. Complete mediation §1.16, the principle that every access to a protected action passes the check, needs evidence that no other path reaches the action, for example a review of every place in the code that performs it.
A decision program may stay within its allowed memory, finish within a work limit, and return the intended verdict. Each claim has its own assumptions. For example, a verifier can check an eBPF §2.1 (extended Berkeley Packet Filter) program before admitting it. Its checks concern properties such as which instructions can run and what data they can read. The resulting guarantees depend on the verifier, the execution engine and the functions the program may call. The owner still has to check what the program decides for the inputs that matter.
A verdict that the code ignores on an error path controls nothing on that path. Check which verdict a failed evaluation produces, the fault-to-verdict mapping §2.34: treating the failure as deny is the fail-closed §1.13 choice, and treating it as allow is the fail-open §1.14 choice.
Questions answered
When is a verdict effective?
A verdict is effective from the instant it reaches the point where an action waits for it, and only for actions that have not yet happened and that obey it. That point is the enforcement point: the place in the code where the action stops until the decision arrives and then proceeds or is refused. A verdict that arrives after the action, or that the action does not wait for, can record the action or govern later actions, but cannot prevent this one. For each kind of event, name the action that a deny controls, for example suppressing a reply, refusing a change of state, or ending a connection so that later requests are refused.
When the policy can change while events are handled, a verdict also applies only to one version of the policy: the version that its evaluation read. Publishing each version through one pointer, and keeping an old version until its readers finish, gives each evaluation that reads the pointer once one coherent version. It does not make several evaluations, or the input and output around them, one indivisible transaction.
Related entries: Read-copy update (RCU) (§9.20), Linearization point (§8.6), eBPF verifier (§3.3), Complete mediation (§1.16), Coherent snapshot (§9.23), Fault-to-verdict mapping (§2.34).