Skip to content

Process containment profiles

A process cell runs untrusted code, so the limits on that code are applied by the operating system before the provider starts. A process containment profile is the named contract for those limits. A grant names the profile it requires, and a cell starts only when every control of that profile is in force. This page covers the two profiles, the controls ProductionProcessCell applies, what the node provides for them, and how the monitor's and the provider's views differ.

Two profiles

ProductionProcessCell is the profile of every production cell and the Linux correctness baseline. When a control it requires is unavailable, the launch is refused before any provider code runs.

DevelopmentProcessCell is for local development and conformance testing. It is selected explicitly, and a grant that requires production containment refuses it.

Profile selection is authority carried by the grant. A host that lacks cgroup delegation, namespaces, Landlock, seccomp, pidfds or mount authority fails a production launch with an effect failure, and the cell stays out of ready.

What surrounds the provider

flowchart TB
  CG[("Delegated cgroup v2 parent<br/>provisioned by the node")]
  subgraph LEAF["CELL: CGROUP LEAF AND NAMESPACES"]
    direction TB
    MON["Cell monitor<br/>reads and executes the sealed kernel runtime"]
    subgraph PV["PROVIDER VIEW: seccomp, Landlock, no_new_privs"]
      direction TB
      PROV["Runtime provider"]
      MNT[("Closure mounts<br/>read-only")]
      TMP[("Private tmpfs")]
      FD[("Allowed descriptors<br/>and exact devices")]
      PROV --> MNT
      PROV --> TMP
      PROV --> FD
    end
    MON -->|"starts"| PROV
  end
  CG -->|"cell leaf: memory, CPU, process limits"| MON

The CELL box is bounded twice: its cgroup leaf bounds resources, and its user, mount, PID, network and IPC namespaces bound what its processes can see. The PROVIDER VIEW box adds the limits on what the provider can open and call.

Controls of ProductionProcessCell

Every control is mandatory and applied before the provider starts.

Area Controls
Process supervision Parent-death signal, pidfd supervision, child-process confinement, child reaping
Namespaces User, mount, PID, network and IPC; a private mount propagation tree and a restricted /proc
Resources A delegated cgroup v2 child with memory, CPU and process limits; resource limits
Privilege no_new_privs, Linux capability removal, ptrace denied, process marked non-dumpable
Syscalls A seccomp filter covering privileged namespace, kernel, tracing and dynamic-code operations
Filesystem Immutable closure mounts, a private tmpfs, no writable executable filesystem, a Landlock ruleset
Descriptors An explicit file-descriptor allowlist with CLOEXEC on everything else
Network and devices Network egress policy, device policy, dynamic-code policy, each decided exactly by the sealed profile

See Filesystem views, Fd hygiene and Resource limits.

What the node provides

The node pre-provisions a cgroup v2 parent and delegates it to the kernel service. For each cell the launcher records its original cgroup membership, moves into a cell-specific leaf under the delegated parent, and returns to the exact original membership before removing the leaf. The delegated parent itself holds controllers and no processes, as cgroup v2 requires.

Monitor view and provider view

The trusted monitor and the untrusted provider receive different filesystem authority:

  • the monitor reads and executes the sealed kernel runtime it needs to start the provider;
  • the provider receives the closure mounts, the private writable area, the declared control sockets and the exact devices of the profile.

The monitor first launches the provider and secret handler through their own production containment launchers. It then irreversibly completes its own Landlock, seccomp and descriptor restrictions before either child becomes ready. Each child receives its own narrower process-cell controls, so provider read authority is bounded independently of the trusted monitor's view. Startup evidence records monitor security completion separately from provider and secret-handler readiness.