summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry
diff options
context:
space:
mode:
authorDean Deng <deandeng@google.com>2020-03-23 14:32:05 -0700
committergVisor bot <gvisor-bot@google.com>2020-03-23 14:33:15 -0700
commit6eebaea94936ffefd3603ff16ad2225856313fa3 (patch)
tree1fc892974411b6b17e5b7187a34b777f2736295a /pkg/sentry
parent8c35614760a194d52a706748adb9af3a28fb864b (diff)
Correctly release taskPathOperation for accessAt.
PiperOrigin-RevId: 302518924
Diffstat (limited to 'pkg/sentry')
-rw-r--r--pkg/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 100644
--- 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.