diff --git a/skills/omega-encoding/SKILL.md b/skills/omega-encoding/SKILL.md index 4f7350f..690c5f9 100644 --- a/skills/omega-encoding/SKILL.md +++ b/skills/omega-encoding/SKILL.md @@ -769,6 +769,23 @@ Historical note: up to omc `2c824805…` (omega-mv `e5b32567`, the omega MCP pin the wrong word: `pwrite` from a `text` was error 20 and `pread` into a `text` compiled and returned `-EFAULT` at run time. Code written for that pin copied a text into a `new` array before `pwrite`. +**`execpure` and descriptor closing in `execprog`** (merged in +[omega-mv#970](https://github.com/aien-dev/omega-mv/pull/970) as `1db941627`, current main pin +`91c83438` / omc `2aec185d`). `execpure A off n` is host word 198 +(AArch64 only; `target x86linux` is error 25): it decodes the packet as `execprog` does, pins the +executable as descriptor 3, applies a fixed strict stdio profile (Landlock execute/read beneath that file, +no-new-privs, seven `prlimit64` ceilings, a seccomp filter allowing only `read` on 0, `write` on 1 and 2, +`exit`, `exit_group` and `execveat` on 3) and calls `execveat(AT_EMPTY_PATH)`. It returns only on failure, +with the first failing step's negative errno, and has no weaker fallback. `execprog` also changes: it now +closes every descriptor at or above 3 with `close_range(3, UINT_MAX, CLOSE_RANGE_UNSHARE)` before exec, +so a child no longer inherits them. Observed 2026-10-31 with omc `2aec185d` (host only): the +`seed/qualification/security673/pure-launch.om` fixture launching a static omc program that exits 7 gave +exit 7; launching `/nonexistent/x` printed `PURE_LAUNCH_REFUSED` and exited 2 (ENOENT); a child that reads +descriptor 3 got EPERM (exit 1) under `execpure`, and EBADF (exit 9) under `execprog` with the parent's +descriptor 3 open. The omc of `1db941627^` (`0243e4aff`, sha256 `1578b357…`) refuses `execpure` with +error 3, and its `execprog` child read the inherited descriptor 3 (exit 50). Older pins, including the +omega MCP pin `2c824805…`, lack both. + - Types: `fd`, flags, modes, pids are `int`; offsets, counts, capacities `ulong`; file positions and intervals `long`; buffers are `uchar` arrays. Every result is `long`. - A result is a **count or minus the Linux errno**. `read` may return fewer bytes than asked, 0 at