mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Use root context to mount volumes
Fixes #6643 PiperOrigin-RevId: 400218778
This commit is contained in:
committed by
gVisor bot
parent
0db2ab9329
commit
94623ccf51
+1
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user