Skip to content

[1.2] fix rootfs propagation mode to shared / unbindable #4791

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

Open
wants to merge 1 commit into
base: release-1.2
Choose a base branch
from

Conversation

rata
Copy link
Member

@rata rata commented Jun 20, 2025

(cherry picked from commit 04be81b)
Backport of #4724 to release-1.2 branch. Original description follows.


This PR adds support for applying mount propagation settings (MS_SHARED or MS_UNBINDABLE) to the container root based on the value of config.RootPropagation.
We apply mount propagation after executing pivot_root and rootfsParentMountPrivate

Fixes #1755

Related:
#1815
youki-dev/youki#3141

Signed-off-by: Yusuke Sakurai [email protected]

Signed-off-by: Yusuke Sakurai <[email protected]>
(cherry picked from commit 04be81b)
@rata rata requested review from lifubang and kolyshkin June 20, 2025 14:24
@kolyshkin kolyshkin added this to the 1.2.7 milestone Jun 20, 2025
@kolyshkin kolyshkin added the backport/1.2-pr A backport PR to release-1.2 label Jun 20, 2025
@kolyshkin
Copy link
Contributor

Hmm, I was not aware we're going to make another 1.2.x release. If we are, though, it's going to be 1.2.7 which already have some stuff merged.

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.

4 participants