From d93907110eebdfb1e51dacd9ccffd0f0c2633a81 Mon Sep 17 00:00:00 2001 From: Rahat Mahmood Date: Thu, 22 Apr 2021 15:50:01 -0700 Subject: Also report mount options through /proc//mounts. PiperOrigin-RevId: 369967629 --- pkg/sentry/vfs/mount.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pkg/sentry') diff --git a/pkg/sentry/vfs/mount.go b/pkg/sentry/vfs/mount.go index 7cdab6945..82fd382c2 100644 --- a/pkg/sentry/vfs/mount.go +++ b/pkg/sentry/vfs/mount.go @@ -826,6 +826,9 @@ func (vfs *VirtualFilesystem) GenerateProcMounts(ctx context.Context, taskRootDi if mnt.Flags.NoExec { opts += ",noexec" } + if mopts := mnt.fs.Impl().MountOptions(); mopts != "" { + opts += "," + mopts + } // Format: // -- cgit v1.2.3