summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/syscalls
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-03-23 21:37:39 +0000
committergVisor bot <gvisor-bot@google.com>2020-03-23 21:37:39 +0000
commitc35e15907498fd4872381e27cbb93268e1259756 (patch)
treeff8b0235c8bb664f2a557401b04a5a89c1b95932 /pkg/sentry/syscalls
parentc94a4e867731c1a154f5a7d51bd46c2dae639f29 (diff)
parent6eebaea94936ffefd3603ff16ad2225856313fa3 (diff)
Merge release-20200219.0-217-g6eebaea (automated)
Diffstat (limited to 'pkg/sentry/syscalls')
-rwxr-xr-xpkg/sentry/syscalls/linux/vfs2/stat.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/sentry/syscalls/linux/vfs2/stat.go b/pkg/sentry/syscalls/linux/vfs2/stat.go
index 97eaedd66..068243132 100755
--- a/pkg/sentry/syscalls/linux/vfs2/stat.go
+++ b/pkg/sentry/syscalls/linux/vfs2/stat.go
@@ -272,6 +272,7 @@ func accessAt(t *kernel.Task, dirfd int32, pathAddr usermem.Addr, mode uint) err
if err != nil {
return err
}
+ defer tpop.Release()
// access(2) and faccessat(2) check permissions using real
// UID/GID, not effective UID/GID.