-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Revert "rootfs: handle nested procfs mounts for MS_MOVE" + add a test #2654
Conversation
This reverts commit b8bf572. Revert #2647 Reopen #2339 Signed-off-by: Akihiro Suda <[email protected]>
b626821
to
2aa00eb
Compare
This is actually a bug in |
mountinfos, err := mountinfo.GetMounts(func(info *mountinfo.Info) (skip, stop bool) { | ||
// Collect every sysfs and procfs filesystem, except for those which | ||
// are non-full mounts or are inside the rootfs of the container. | ||
if info.Root != "/" || |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's overkill to revert it -- a simpler patch is to just remove this info.Root != "/"
clause which won't cause us to revert the fix (the ENOENT
check later in the patch is sufficient to fix that bug).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's revert it first and then revendor moby/sys#50 when it is merged
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with @cyphar here -- for the reason of having a slightly less dramatic git history.
For preventing regression like #2647 Signed-off-by: Akihiro Suda <[email protected]>
Added a new commit: |
Reverts #2647 due to a security issue
Reopens #2639