Skip to content

Restore cgroup namespace in ignore mode - #5418

Open
TimDurward wants to merge 1 commit into
opencontainers:mainfrom
TimDurward:criu-ignore-cgroupns
Open

Restore cgroup namespace in ignore mode#5418
TimDurward wants to merge 1 commit into
opencontainers:mainfrom
TimDurward:criu-ignore-cgroupns

Conversation

@TimDurward

Copy link
Copy Markdown

When restoring into a different cgroup with --manage-cgroups-mode=ignore, the process is placed in the configured cgroup but its private cgroup namespace is not preserved. /proc/self/cgroup consequently exposes the host-relative cgroup path instead of 0::/.

This change keeps the restored process in a private cgroup namespace. The existing test for restoring into a new cgroup now checks that /proc/self/cgroup still reports 0::/ after restore.

Fixes #5417

Signed-off-by: Timothy Durward <timothy.a.durward@gmail.com>
@kolyshkin
kolyshkin force-pushed the criu-ignore-cgroupns branch from b531698 to 0e3ad85 Compare August 24, 2026 19:59
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.

restore loses private cgroup namespace in ignore mode

1 participant