Honor readonly flag for root mount

Updates #1487

PiperOrigin-RevId: 330580699
This commit is contained in:
Fabricio Voznika
2020-09-08 14:00:43 -07:00
committed by gVisor bot
parent 284e6811e4
commit c8f1ce288d
18 changed files with 178 additions and 120 deletions
+1 -1
View File
@@ -342,7 +342,7 @@ func setup(t *testing.T) *testutil.System {
AllowUserMount: true,
})
mntns, err := k.VFS().NewMountNamespace(ctx, creds, "", "tmpfs", &vfs.GetFilesystemOptions{})
mntns, err := k.VFS().NewMountNamespace(ctx, creds, "", "tmpfs", &vfs.MountOptions{})
if err != nil {
t.Fatalf("NewMountNamespace(): %v", err)
}