On this page

0186. Require truncation enforcement for Linux sandboxing

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.