forked from kata-containers/kata-containers
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
runtime: fix virtiofsd RO volume sharing
Right now we rely heavily on mount propagation to share host files/directories to the guest. However, because virtiofsd pivots and moves itself to a separate mount namespace, the remount mount is not present in virtiofsd's mount. And it causes guest to be able to write to the host RO volume. To fix it, create a private RO mount and then move it to the host mounts dir so that it will be present readonly in the host-guest shared dir. Fixes: kata-containers#1552 Signed-off-by: Peng Tao <bergwolf@hyper.sh>
- Loading branch information
Showing
3 changed files
with
71 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters