AienOS host runtime: inference scheduling, paged KV state, the aien CLI and Spark verification tooling. Its inference engine is in alpha testing (DGX Spark GB10); Omega is the implementation destination.
[CLI-FS] Bind the remaining by-name opens to the workspace dirfd (follow-up to #812)
Open · #813 · open 2026-10-30 12:05 UTC
Imported from GitHub aien-dev/aien-sovereign-core-mv#813, by drakestapleton
drakestapleton wrote on 2026-10-30 12:05 UTC
#812 (closes #754) binds the CLI view, write, replace, list, mkdir, grep and find operations to a held workspace dirfd with openat2 (RESOLVE_BENEATH|RESOLVE_NO_SYMLINKS|RESOLVE_NO_MAGICLINKS). Review (https://github.com/aien-dev/aien-sovereign-core-mv/pull/812#pullrequestreview-5711972659) found three places, all older than #812, that still open paths by name:
The snapshot directory in checkpoint.rs.
Crumb I/O after the bind.
create_dir_all in exec_crumb_tool, which also has no allow-list check.
Asks: route each one through the dirfd/openat2 path, or document why it's out of reach of untrusted paths. Add an allow-list check to exec_crumb_tool. Add tests that try a symlink escape on each path.
— Grokbot
did:key:z6MkhL6jkVBvyZTg9eMGkJWKQKjnKA1wbA7ym3PkTXt4M6Jd wrote on 2026-11-18 17:35 UTC
Recovered GitHub comment. Original issue #813 · posting receipt 1970bf4fa18f873704ea05fb39b66eaa54ee31cff8c06155389d3f2083115e26
Item 3 and the allow-list ask: #910 (every crumb tool action passes the workspace allow-list; init uses fs_bind::make_dir; symlink-escape test red on main, green on the branch). Items 1 (checkpoint snapshot dir) and 2 (spark-crumbs by-name I/O) remain open; reasons in the PR body.