-
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
checkpoint: resolve symlink for external bind mount (take II) #3047
Conversation
Hi @kolyshkin and @cyphar Sorry for broking CI system in the weekend.. When #2902 is merge, issue #3042 shows that CI is broken, with error message
I am not sure whether it is introduced due to security issue. So I choose Solution 2 described in #3042 |
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.
LGTM
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.
LGTM
@cyphar @AkihiroSuda PTAL |
Thanks @kolyshkin , @cyphar @AkihiroSuda rebased and tested with newest master. |
@liusdu can you please rebase? we did some changes to CI that unfortunately require an explicit rebase. |
@kolyshkin rebased~ |
@liusdu needs another rebase (we're tackling with CI lately) |
rebased |
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.
LGTM
runc resolves symlink before doing bind mount. So we should save original path while formatting CriuReq for dump and restore. "checkpoint: resolve symlink for external bind mount" is merged as da22625(PR 2902) previously. And reverted in commit 70fdc05(PR 3043) duo to behavior changes caused by commit 0ca91f4(Fixes: CVE-2021-30465) Signed-off-by: Liu Hua <[email protected]>
@kolyshkin @cyphar @crosbymichael rebased, please take a look at this patch. |
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.
Still LGTM
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.
LGTM. Tbh I'm still not sure I understand why it's necessary, but if it fixes stuff for CRIU I'm happy.
[From @kolyshkin: This is a respin of #2902 which was reverted in #3043]
runc resolves symlink before doing bind mount. So
we should save original path while formatting CriuReq for
dump and restore.
"checkpoint: resolve symlink for external bind mount" is merged as
da22625 (PR #2902) previously. And reverted
in commit 70fdc05 (PR #3043) duo to behavior changes
caused by commit 0ca91f4 (Fixes: CVE-2021-30465)
Signed-off-by: Liu Hua [email protected]
Changelog entry
(by @kolyshkin)