0186. Require truncation enforcement for Linux sandboxing
- Status: Accepted
- Date: 2026-11-08
- Plan: M16.6
Amends ADR-0096. Its read-only filesystem promise includes
content changes through truncate,
ftruncate and open(O_RDONLY | O_TRUNC).
LANDLOCK_ACCESS_FS_TRUNCATE was added in ABI 3. A
kernel exposing ABI 1 or 2 cannot enforce this policy.
Treat ABIs below 3 as unusable. Return Denied
without spawning an unrestricted child. Keep both the native and
interpreter launchers on the same policy. In strict mode run the
gate's sandbox verification on the current host, since a previous
marker cannot establish the current kernel and process
environment.
Masking the unavailable right would permit content changes in read-only roots. Blocking truncation independently would also affect legitimate writable roots. Require the ABI that can distinguish the requested grants.