Skip to content

feat(pool): per-request --user/--workdir/--env for pool run#23

Merged
ZhiXiao-Lin merged 1 commit into
mainfrom
feat/pool-run-options
Jun 12, 2026
Merged

feat(pool): per-request --user/--workdir/--env for pool run#23
ZhiXiao-Lin merged 1 commit into
mainfrom
feat/pool-run-options

Conversation

@ZhiXiao-Lin

Copy link
Copy Markdown
Contributor

pool run gains -u/--user, -w/--workdir, -e/--env (repeatable KEY=VALUE), carried on the wire (serde-default, back-compat with older clients) and honored in both modes:

  • deferred (pool start --deferred): via the spawn-main spec — same user-resolution + seccomp path as a boot main;
  • exec: via a full ExecRequest (was the bare exec_command).

KVM-verified in both modes: pool run -u 1000 -w /tmp -e FOO=bar -- sh -c 'echo uid=$(id -u) pwd=$(pwd) FOO=$FOO'uid=1000 pwd=/tmp FOO=bar, exit 0. 16 pool unit tests pass (roundtrip + spec-builder updated for the new fields).

pool run gains -u/--user, -w/--workdir, -e/--env (repeatable KEY=VALUE), carried
on the wire (serde-default, back-compat) and honored in BOTH modes: deferred
(via the spawn-main spec, same user-resolution/seccomp path as a boot main) and
exec (via a full ExecRequest instead of the bare exec_command).
@ZhiXiao-Lin ZhiXiao-Lin merged commit d1fd68b into main Jun 12, 2026
7 checks passed
@ZhiXiao-Lin ZhiXiao-Lin deleted the feat/pool-run-options branch June 12, 2026 06:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant