Repository navigation
2026.10.10.2: net=proxy under restricted user namespaces; interactive joins get their own terminal; extraction copies refused hard links, classifies write failures and reports progress - #651
Merged
Conversation
…stricted (2026.10.10.2) The supervisor made the proxy's network namespace itself (unshare user+net), then brought up lo in it. On a host that restricts unprivileged user namespaces -- Ubuntu 23.10 and later, as installed -- the one-time setup exempts only the root-owned bwrap: a namespace made by xlings gets no capabilities, lo cannot come up, and an agent workspace (agent-private: the proxy as the only network) could not start: "net=proxy: private loopback gateway was not created". xlings' own CI turned the restriction off for the whole runner, so it never saw it; the agent workspace acceptance on a stock runner did. Now bwrap makes the namespace (--unshare-net brings up lo) and session-init, the sandbox's first process, runs the loopback gateway on the bridge it is handed (XLINGS_SESSION_PROXY_FD). The supervisor's relay is unchanged. INTENT-EQ golden: the 46 proxy cases gain --unshare-net, on purpose. The isolation-fix lane (the restriction left on) now enters net=proxy. net=nat (pasta attaching to a namespace this client makes) still needs the restriction lifted; recorded as a known limitation.
The bridge to the loopback gateway closes when session-init exits, which is the end of every net=proxy session, and bwrap -- the process the supervisor waits for -- outlives session-init by a moment. The supervisor read the closed bridge as a lost gateway and sent bwrap SIGKILL at once; landing in that moment, it turned the command's exit status into 137 (SubosNetworkE2E.ProxyHasOneExitAndPassesTheUnresolvableDomainToThatExit, two runs in three under `mcpp test`). A gateway lost while the session runs on is now killed after one second; until then the namespace has no gateway, so nothing leaves it.
…led, and reports progress; a failed package stops its dependents X1. A hard-link entry the filesystem refuses (EACCES, EPERM, EXDEV, EMLINK, ENOTSUP: Android's app sandbox, FAT, exFAT) becomes a copy of the file it names, with its permissions and modification time. The target must be a regular file extracted earlier inside the destination; anything else is a malformed archive. glibc 2.44.3 r3 carries 256 such entries per architecture, and every install of it in Termux failed with "write_header(...): Can't create". X2. A failed local write is classified by its errno: ENOSPC/EDQUOT is E_DISK_FULL, EACCES/EPERM/EROFS is E_PERMISSION, anything else E_INTERNAL with the system's reason in the message. All three used to be E_DISK_FULL with "check free space and permissions". A node whose dependency failed in this run is reported failed for that reason, with that code, and none of its hooks run; the declared-programs check skips failed nodes. The original failure is no longer followed by "installed but registered none of its declared programs" for every package of the closure. X3. Extraction reports the share of the archive read, at each whole percent: `extract` progress events on the interface, and a terminal line after 10 s then every 30 s. The hook heartbeat moves to the same cadence (10 s, then 30 s). Interface protocol 1.7.
…minal of its own
Joining a running session handed the command the caller's terminal after
setsid(). That terminal is the controlling terminal of the caller's session
and cannot become another's, so the command ran with no job control, and
fish -- which requires it -- exited at once ("tcgetpgrp failed",
"setpgid: Inappropriate ioctl for device"). Reported with speak-agent-private
entered from a second terminal.
session-init now opens a pseudo-terminal inside the sandbox for an
interactive joined command and makes it the command's controlling terminal.
The caller's terminal is put in raw mode for the duration and only carries
bytes to and from it; a relay thread copies them and keeps the window size
(SIGWINCH follows from TIOCSWINSZ), and Ctrl-C reaches the command as the byte
its terminal turns into SIGINT. The caller's terminal stays outside the
sandbox, so the command can neither take it nor push input into it. The
command's last output reaches the caller before the exit status does.
SubosSession.AnInteractiveJoinHasATerminalOfItsOwn: on 2026.10.9.2 the joined
command has no controlling terminal (tty_nr 0); now it is in the foreground
of its own.
Sunrisepeak
added a commit
to openxlings/xim-pkgindex
that referenced
this pull request
Oct 9, 2026
…hecked for them (#947) For mcpp-community/mcpp on Termux (design `.agents/docs/2026-10-10-one-source-one-meaning-design.md` §13, P1/P2, in mcpp). **P1.** glibc 2.44.3 r3 has 256 hard-link entries per architecture (zoneinfo aliases, getconf). Android's app sandbox refuses link(2), so every xlings up to 2026.10.10.1 failed to install it in Termux (`write_header(.../getconf/POSIX_V6_LP64_OFF64): Can't create`), and with it mcpp's default llvm toolchain on aarch64 Android. - Revision 4 is revision 3 with each such entry replaced by the file it names (`.agents/tools/dereference-hard-links.py`): same bytes, modes, owners and times; top-level directory renamed to r4; `PROVENANCE.txt` records the derivation. An extracted r3 and r4 differ only in `PROVENANCE.txt` (`diff -r`, and a listing of mode and mtime). - Published to `xlings-res/glibc` `2.44.3-r4`, GitHub and GitCode, both downloaded and compared byte for byte (`.agents/docs/2026-10-10-glibc-r4-resource-admission.json`). The r3 assets stay published. - Installed from this branch with xlings built from openxlings/xlings#651 in a clean home: `ldd (GNU libc) 2.44`. **P2.** `payload-hard-links.yml` reads every tar archive whose URL a pull request adds under `pkgs/` and refuses one with a hard-link entry. Run against the commit that introduced r3, it reports the r3 archives (256 entries each) and glibc 2.44/2.44.2 (3 each), and passes everything else. Payloads already published with hard links (gcc 16.1.0: 8, musl-gcc 15.1.0: 13) are not re-released: xlings 2026.10.10.2 (#651) copies a refused hard link, and a new revision would make every existing user download them again.
Sunrisepeak
added a commit
to mcpp-community/mcpp
that referenced
this pull request
Oct 10, 2026
…r action output, module roles from declarations, Termux (#792) Release 2026.10.10.1. Design: `.agents/docs/2026-10-10-one-source-one-meaning-design.md` (revision 6). ## Workspace: the prefix carries the meaning (#785, #786) - `[workspace.toolchain]`, `[workspace.indices]`, `[workspace.profile.<name>]`, `[workspace.target.<selector>]` (with `.build`, `.abi`, `.runtime`, `.xlings.workspace`) and `[workspace.xlings]` mirror the tables of the same name and are read by the same reader (`parse_document` over the document under `workspace.`). A table without the prefix describes its own package. - Merge rule by key (W3): declared scalars stay the member's, lists put the workspace first, named tables merge key by key, conditional rows are inherited ahead of the member's. Package-only keys and unknown `[workspace]` tables are refused. - The root's own tables still reach members by position, unchanged, in `mcpp.pm.compat.workspace_position`, with a `manifest/workspace-position` warning naming the canonical spelling (removed in 1.0.0). W7 warns about package tables on a root without `[package]` (`--strict`: error). A note asks for the `mcpp` floor when the layer is used. - Members are grouped by their configuration as it evaluates for the target; the virtual root carries a member's conditional `dialect_cxxflags`/`.abi` rows (R1b: `DIAL=0` → `DIAL=2`). - `mcpp.manifest.key_registry`: the class of each key; the parser's `[build]` and conditional-build known keys, the shared conditional keys and W7's package tables are derived from it. - `mcpp publish` writes the layer into the member's own tables (W6). ## Action outputs have one writer (#778) - Prepare writes no placeholder; a generated unit enters the plan from its action's declaration. A generated module interface without `.provides()` is `degraded`. - `mcpp::out_dir()` is per configuration and package (`target/.build-mcpp/out/<configuration>/<package>`), recorded as `outDir` in `resolution.json`. ## Module role from the declaration (#790) - A C++ unit that provides a module takes the module rule whatever its extension; cl.exe implementation partitions get `/internalPartition` (measured in probe #791). ## Toolchains, Windows, Android - `--toolchain` replacing a declared toolchain warns (D11). - Windows SDK from `KitsRoot10` and `%ProgramFiles%`; `vswhere` from `%ProgramFiles(x86)%`; the MSVC probe names the missing half for the first-run notice and for the refusal of a specified toolchain (D15–D18). - Android host recognised (`self env` → `android`), same default toolchain (D21); argv shell resolved (D28); the managed toolchain's library path no longer reaches ninja's environment (D29); install hints by failure class and xlings extract/hook progress shown (D22, D23). - xlings pinned to 2026.10.10.2 (openxlings/xlings#651: hard-link fallback, error classes, progress); bootstrap mcpp 2026.10.8.1. - Termux fresh-install jobs (termux-docker aarch64, Android 14 emulator app sandbox) in `ci-fresh-install.yml`. ## Late fixes from CI - A workspace member's build program keeps its out dir beside its cache, so `emit build-database` reuses the build's run (e2e 839 B4). - `mcpp index list` reads the same effective indices as resolution (e2e 44). - A failed install names the first address's failure ahead of the `compat` retries. - Tests read a tool binding from `build.ninja` as a command line (`env LD_LIBRARY_PATH=...` prefix, D29); the graphics checks read `outDir` (`.github/tools/out_dir.sh`). - The Linux and macOS e2e jobs install the `mcpplibs.cmdline` payloads e2e 32/33/40 link, which a warm cache used to hold. ## Tests - e2e 893–901, each failing on 2026.10.8.1: workspace layer, compat reading, conditional rows, one writer, per-configuration out_dir, module units in `.cpp` (llvm and gcc), `--toolchain` note, publish write-back, the tools' library path. - Unit: `test_key_registry` (registry vs `kWorkspaceBuildKeys` and the grouping key, layer parsing and refusals, W7, W3 merges, grouping), `MsvcProbe` description. - e2e 12, 44, 210 moved to `[workspace.indices]`; 120 and 773 keep the position reading as its coverage; 111 reads the new output place. ## Ecosystem - openxlings/xlings#651 (released 2026.10.10.2), openxlings/xim-pkgindex#947 (glibc 2.44.3 r4, payload hard-link check), mcpp-community/mcpp-plugins#45 (tests read `outDir`). Closes #785, closes #786, closes #778, closes #790.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Release 2026.10.10.2.
SubOS
XLINGS_SESSION_PROXY_FD). Found by the agent workspace acceptance (xim-pkgindex#945) on a stock ubuntu-24.04 runner; xlings CI had the restriction turned off. The isolation-fix lane (restriction on) now enters net=proxy.tcgetpgrp failed,setpgid: Inappropriate ioctl for device). The caller's terminal is raw for the duration and only relays bytes and the window size; the command cannot take it or inject into it.xim (for mcpp-community/mcpp, Termux; design
.agents/docs/2026-10-10-one-source-one-meaning-design.md§13 in mcpp)write_header(...): Can't create.E_DISK_FULLonly for ENOSPC/EDQUOT,E_PERMISSIONfor EACCES/EPERM/EROFS,E_INTERNALotherwise, with the system's reason). A node whose dependency failed is reported failed for that reason and none of its hooks run; "installed but registered none of its declared programs" is no longer reported for a node that already failed.extractevents per percent of the archive read; a terminal line after 10 s, then every 30 s). The hook heartbeat uses the same cadence. Interface protocol 1.7.Tests
Extract.*: hard-link entries stay links where allowed, become copies with equal permissions and time, a hard link to a symlink is refused, errno classes, monotonic progress.SubosSession.AnInteractiveJoinHasATerminalOfItsOwn(on 2026.10.9.2 the joined command has no controlling terminal).InstallFailure.ADependentOfAFailedPackageIsNotRunAndNotBlamed(fails on 2026.10.9.2: "registered none" for the failed package, no dependency reason).