Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[1.2] libct: don't send config to nsexec when joining an existing timens #4649

Merged
merged 2 commits into from
Feb 27, 2025

Conversation

kolyshkin
Copy link
Contributor

This is a backport of #4636 to release-1.2. Original description follows.


Fix #4635

When we exec a process in a container has private timens, we need to
join the init process's timens path, so, we should not send the timens
config to nsexec, otherwise, runc will try to update the process's time
ns configuration when joining the timens path.
We should configure the process's timens offset only when we need to
create new time namespace, we shouldn't do it if we are joining an
existing time namespace.

Signed-off-by: lifubang <[email protected]>
(cherry picked from commit 7461968)
Signed-off-by: Kir Kolyshkin <[email protected]>
We should configure the process's timens offset only when we need to
create new time namespace, we shouldn't do it if we are joining an
existing time namespace. (opencontainers#4635)

Signed-off-by: lifubang <[email protected]>
(cherry picked from commit ad09197)
Signed-off-by: Kir Kolyshkin <[email protected]>
@kolyshkin kolyshkin added this to the 1.1.16 milestone Feb 26, 2025
@kolyshkin kolyshkin added the backport/1.2-pr A backport PR to release-1.2 label Feb 26, 2025
@cyphar cyphar merged commit 35d1d6e into opencontainers:release-1.2 Feb 27, 2025
40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/1.2-pr A backport PR to release-1.2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants