diff options
author | Fabricio Voznika <fvoznika@google.com> | 2021-10-01 09:20:14 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-10-01 09:23:26 -0700 |
commit | 94623ccf513ed21ec67e1fcb6800ee1250fe27b2 (patch) | |
tree | a10d6d8281210af1adbcf7b5282cc527062858ff /runsc | |
parent | 0db2ab9329b17a66b3dd4f49999325a4b69726bf (diff) |
Use root context to mount volumes
Fixes #6643
PiperOrigin-RevId: 400218778
Diffstat (limited to 'runsc')
-rw-r--r-- | runsc/boot/vfs.go | 2 |
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 { |