From 94623ccf513ed21ec67e1fcb6800ee1250fe27b2 Mon Sep 17 00:00:00 2001 From: Fabricio Voznika Date: Fri, 1 Oct 2021 09:20:14 -0700 Subject: Use root context to mount volumes Fixes #6643 PiperOrigin-RevId: 400218778 --- runsc/boot/vfs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runsc/boot/vfs.go') 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 { -- cgit v1.2.3