diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-07-09 00:14:56 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-07-09 00:14:56 +0000 |
commit | 61659491473d258a9e6ac658f8906ee5441b1d3a (patch) | |
tree | 72edb742245888533e83eb818d22e1861eb118fa /runsc/boot/loader.go | |
parent | 1faf4e5c1e9d14fcff758a60328ff4eb7fbee0de (diff) | |
parent | c4815af9475cc4680c6d598d9c930de892c98aae (diff) |
Merge release-20200622.1-85-gc4815af94 (automated)
Diffstat (limited to 'runsc/boot/loader.go')
-rw-r--r-- | runsc/boot/loader.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/runsc/boot/loader.go b/runsc/boot/loader.go index 0940d2a6d..0c0423ab2 100644 --- a/runsc/boot/loader.go +++ b/runsc/boot/loader.go @@ -298,6 +298,12 @@ func New(args Args) (*Loader, error) { return nil, fmt.Errorf("initializing kernel: %v", err) } + if kernel.VFS2Enabled { + if err := registerFilesystems(k); err != nil { + return nil, fmt.Errorf("registering filesystems: %w", err) + } + } + if err := adjustDirentCache(k); err != nil { return nil, err } @@ -559,7 +565,7 @@ func (l *Loader) run() error { l.startGoferMonitor(l.sandboxID, l.goferFDs) mntr := newContainerMounter(l.spec, l.goferFDs, l.k, l.mountHints) - if err := mntr.processHints(l.conf); err != nil { + if err := mntr.processHints(l.conf, l.rootProcArgs.Credentials); err != nil { return err } if err := setupContainerFS(ctx, l.conf, mntr, &l.rootProcArgs); err != nil { |