Syscall exposure profiles¶
The same Run can be reached from an application service, a managed gateway, a chat surface or the CLI, and each of those audiences should reach a different subset of the kernel's syscalls. A syscall exposure profile states, per audience, which already-granted operations that audience may use. A profile selects from authority that exists: it is one term of an intersection, so it can only narrow what a grant carries. This page covers the profile, the intersection that produces effective authority, the defaults, and where the profile is checked at ingress.
Effective authority¶
flowchart TB
subgraph TERMS["EVERY TERM MUST PERMIT THE OPERATION"]
direction TB
G[("Control-plane policy grant")]
AB[("Application runtime binding")]
CI[("Caller identity rights")]
TB2[("Target binding rights")]
HR[("Run or Session handle rights")]
end
P{{"Syscall exposure profile<br/>per audience"}}
EFF(["Effective authority<br/>for this request"])
G --> P
AB --> P
CI --> P
TB2 --> P
HR --> P
P --> EFF
Effective authority is the intersection of every box in TERMS, narrowed by
the audience's profile. An operation reaches the nucleus only when each term
permits it. Authored source may state exposure intent, and that intent reduces
authority; the grant remains the source of it.
The profile¶
SyscallExposureProfileV1 {
mode
audiences
allowed_operations
allowed_target_scopes
allowed_event_classes
allowed_session_scopes
rate_limits
}
| Field | Holds |
|---|---|
mode |
disabled, allowlist or policy_inherit |
audiences |
application_service, managed_gateway, direct_chat, cli |
allowed_operations |
The syscalls exposed under allowlist |
allowed_target_scopes |
The targets the audience may address |
allowed_event_classes |
The event classes the audience may subscribe to |
allowed_session_scopes |
The sessions the audience may open or read |
rate_limits |
Request limits for the audience |
The three modes:
disabledexposes nothing to the audience.allowlistexposes exactly the listed operations.policy_inheritexposes everything the grant permits, with no further narrowing.
Defaults¶
Application services default to policy_inherit. Direct chat control is
disabled until an explicit grant enables it.
Each audience has its own profile. Disabling direct chat commands leaves an authorised API service's exposure unchanged.
Where the profile is checked¶
A syscall is admitted at ingress in a fixed order:
- the envelope's shape and protocol version;
- the authenticated grant identity and grant epoch;
- the deadline;
- the audience's exposure of the requested operation;
- the target scope.
A request refused at any step returns a typed fault and creates no Run. A request that passes all five is mapped to a nucleus command. See The Kernel Application ABI and Canonical operations.
The caller context that the profile is checked against is attached by the ingress that authenticated the caller. A principal or audience named inside a request payload is data. See Run authority and grants.