Skip to content

linux pod: exec process should inherit container's process config#562

Merged
dcantah merged 1 commit intoapple:mainfrom
yibozhuang:exec-respect-env
Feb 27, 2026
Merged

linux pod: exec process should inherit container's process config#562
dcantah merged 1 commit intoapple:mainfrom
yibozhuang:exec-respect-env

Conversation

@yibozhuang
Copy link
Contributor

@yibozhuang yibozhuang commented Feb 27, 2026

This change fixes an issue in linux pod where the exec process
does not inherit the container process config which means any
environment variables, working directory, user, rlimits,
capabilities would be different for the exec process.

This change ensures that exec process would inherit
environment variables, working directory, user, rlimits,
and capabilities from the container process config but
resets arguments, terminal, and stdio as those should not
be inherited.

This change also adds an integration test to exercise this.

This change fixes an issue in linux pod where the exec process
does not inherit the container process config which means any
environment variables, working directory, user, rlimits,
capabilities would be different for the exec process.

This change ensures that exec process would inherit
environment variables, working directory, user, rlimits,
and capabilities from the container process config but
resets arguments, terminal, and stdio as those should not
be inherited.

This change also adds an integration test to exercise this.
@dcantah dcantah merged commit bacd996 into apple:main Feb 27, 2026
3 checks passed
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.

3 participants