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

cgroup2: allow mounting /sys/fs/cgroup in UserNS without unsharing CgroupNS #2159

Merged
merged 1 commit into from
Oct 29, 2019

Conversation

AkihiroSuda
Copy link
Member

Bind-mount /sys/fs/cgroup when we are in UserNS but CgroupNS is not unshared,
because we cannot mount cgroup2.

This behavior correspond to crun v0.10.2.
https://github.com/containers/crun/blob/4325a78320852aa5dacb4d403ae01b241413068c/src/libcrun/linux.c#L433-L459

Fix #2158

Signed-off-by: Akihiro Suda akihiro.suda.cz@hco.ntt.co.jp

…roupNS

Bind-mount /sys/fs/cgroup when we are in UserNS but CgroupNS is not unshared,
because we cannot mount cgroup2.

This behavior correspond to crun v0.10.2.

Fix opencontainers#2158

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
@crosbymichael
Copy link
Member

crosbymichael commented Oct 28, 2019

LGTM

Approved with PullApprove

1 similar comment
@mrunalp
Copy link
Contributor

mrunalp commented Oct 29, 2019

LGTM

Approved with PullApprove

@mrunalp mrunalp merged commit 03cf145 into opencontainers:master Oct 29, 2019
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.

cgroup2: cannot mount /sys/fs/cgroup when running in UserNS
3 participants