summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/loader/loader.go
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2019-10-29 21:03:32 +0000
committergVisor bot <gvisor-bot@google.com>2019-10-29 21:03:32 +0000
commit910f97bb1367b9ded822e0b3a4870948ee20112c (patch)
treeec6a59d887ca087b18ea7f4b4c839b2e6d2e7ac0 /pkg/sentry/loader/loader.go
parenta3fdb33c4583a9443abca60e479884e0bf45919f (diff)
parent38330e93774e68324d8f43adb27178453dee18b6 (diff)
Merge release-20190806.1-341-g38330e9 (automated)
Diffstat (limited to 'pkg/sentry/loader/loader.go')
-rw-r--r--pkg/sentry/loader/loader.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/sentry/loader/loader.go b/pkg/sentry/loader/loader.go
index 803e7d41e..b03eeb005 100644
--- a/pkg/sentry/loader/loader.go
+++ b/pkg/sentry/loader/loader.go
@@ -293,6 +293,8 @@ func loadExecutable(ctx context.Context, args LoadArgs) (loadedELF, arch.Context
ctx.Infof("Error loading interpreter script: %v", err)
return loadedELF{}, nil, nil, nil, err
}
+ // Refresh the traversal limit for the interpreter.
+ *args.RemainingTraversals = linux.MaxSymlinkTraversals
default:
ctx.Infof("Unknown magic: %v", hdr)
return loadedELF{}, nil, nil, nil, syserror.ENOEXEC