summaryrefslogtreecommitdiffhomepage
path: root/runsc
diff options
context:
space:
mode:
authorFabricio Voznika <fvoznika@google.com>2021-10-01 09:20:14 -0700
committergVisor bot <gvisor-bot@google.com>2021-10-01 09:23:26 -0700
commit94623ccf513ed21ec67e1fcb6800ee1250fe27b2 (patch)
treea10d6d8281210af1adbcf7b5282cc527062858ff /runsc
parent0db2ab9329b17a66b3dd4f49999325a4b69726bf (diff)
Use root context to mount volumes
Fixes #6643 PiperOrigin-RevId: 400218778
Diffstat (limited to 'runsc')
-rw-r--r--runsc/boot/vfs.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/runsc/boot/vfs.go b/runsc/boot/vfs.go
index 2f1332566..ac1e5ac37 100644
--- a/runsc/boot/vfs.go
+++ b/runsc/boot/vfs.go
@@ -173,7 +173,7 @@ func (c *containerMounter) mountAll(conf *config.Config, procArgs *kernel.Create
rootProcArgs.Credentials = rootCreds
rootProcArgs.Umask = 0022
rootProcArgs.MaxSymlinkTraversals = linux.MaxSymlinkTraversals
- rootCtx := procArgs.NewContext(c.k)
+ rootCtx := rootProcArgs.NewContext(c.k)
mns, err := c.createMountNamespaceVFS2(rootCtx, conf, rootCreds)
if err != nil {