summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/kernel
diff options
context:
space:
mode:
authorJamie Liu <jamieliu@google.com>2020-06-16 00:14:07 -0700
committergVisor bot <gvisor-bot@google.com>2020-06-16 00:15:20 -0700
commit3b0b1f104d963a1d11973c444934e6744ab7e79b (patch)
tree27c57f5cc977c14b85e1a1f0cc687552e497c758 /pkg/sentry/kernel
parent67f261a87d42118d2f587c9a8d20d94972e47498 (diff)
Miscellaneous VFS2 fixes.
PiperOrigin-RevId: 316627764
Diffstat (limited to 'pkg/sentry/kernel')
-rw-r--r--pkg/sentry/kernel/kernel.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/sentry/kernel/kernel.go b/pkg/sentry/kernel/kernel.go
index bcbeb6a39..52491da7a 100644
--- a/pkg/sentry/kernel/kernel.go
+++ b/pkg/sentry/kernel/kernel.go
@@ -892,7 +892,7 @@ func (k *Kernel) CreateProcess(args CreateProcessArgs) (*ThreadGroup, ThreadID,
if mntnsVFS2 == nil {
// MountNamespaceVFS2 adds a reference to the namespace, which is
// transferred to the new process.
- mntnsVFS2 = k.GlobalInit().Leader().MountNamespaceVFS2()
+ mntnsVFS2 = k.globalInit.Leader().MountNamespaceVFS2()
}
// Get the root directory from the MountNamespace.
root := args.MountNamespaceVFS2.Root()