From 0b3166f6243472fbb72cc749c57d3a59aa481979 Mon Sep 17 00:00:00 2001 From: moricho Date: Mon, 20 Apr 2020 17:03:00 +0900 Subject: add bind/rbind options for mount Signed-off-by: moricho --- pkg/sentry/fs/filesystems.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pkg/sentry/fs/filesystems.go') diff --git a/pkg/sentry/fs/filesystems.go b/pkg/sentry/fs/filesystems.go index 084da2a8d..d6abddfd8 100644 --- a/pkg/sentry/fs/filesystems.go +++ b/pkg/sentry/fs/filesystems.go @@ -144,6 +144,10 @@ type MountSourceFlags struct { // NoExec corresponds to mount(2)'s "MS_NOEXEC" and indicates that // binaries from this file system can't be executed. NoExec bool + + // Bind corresponds to mount(2)'s MS_BIND and indicates that + // the filesystem should be bind mounted. + Bind bool } // GenericMountSourceOptions splits a string containing comma separated tokens of the -- cgit v1.2.3