summaryrefslogtreecommitdiffhomepage
path: root/pkg
diff options
context:
space:
mode:
authormoricho <ikeda.morito@gmail.com>2020-04-20 17:03:00 +0900
committermoricho <ikeda.morito@gmail.com>2020-04-25 22:04:39 +0900
commit0b3166f6243472fbb72cc749c57d3a59aa481979 (patch)
treeee1abca69c56990c83fcf4b46c03bf5541fc7877 /pkg
parent93e510e26fca90a90e10a550ce6ca8d7dfa0b55c (diff)
add bind/rbind options for mount
Signed-off-by: moricho <ikeda.morito@gmail.com>
Diffstat (limited to 'pkg')
-rw-r--r--pkg/sentry/fs/filesystems.go4
1 files changed, 4 insertions, 0 deletions
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