Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 2.07 KB

chromium-seccomp.md

File metadata and controls

18 lines (12 loc) · 2.07 KB

Chromium namespace sandbox policy

Historical policy retained for old-image comparison and provenance only. The browser-free runtime uses WeasyPrint and Node rendering; its Compose file and deployment bundle no longer load or distribute this policy.

chromium-seccomp.json is the unmodified policy from the official Playwright v1.62.1 source:

This is the default-policy-based seccomp filter documented by Playwright, with clone, setns and unshare permitted for user namespaces. Its default action remains SCMP_ACT_ERRNO; it is not an unconfined policy. Preserve its exact bytes and provenance together. A browser/Playwright/policy upgrade requires a separately reviewed and tested policy update, not a runtime download or a fallback that disables sandboxing.

The base Compose file explicitly loads this host-side file and supplies dedicated Chromium shared memory. The image runs as node, and the application launches Chromium with chromiumSandbox:true. The host kernel must permit user namespaces; a restricted host can still reject launch. Do not use privileged mode or disable sandboxing to turn that error into success. A passing application health check does not prove a renderer can launch.

An isolated arm64 Bookworm/Node 22 check with Playwright 1.62.1 and Debian Chromium 154.0.8037.92 successfully produced a PDF at UID 1000 using these exact bytes, with no network, a read-only root and no application data or credentials. The same image failed namespace creation under Docker's default policy. This records that tested environment; final release images and other target hosts/architectures still require their own renderer smoke check. See Docker document rendering.