diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-07-16 04:25:26 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-07-16 04:25:26 +0000 |
commit | 024b12466e7bcd049da21616d31628ab4b7713b7 (patch) | |
tree | 1c9b26f62c708b358398cbf0817c27509d62d785 /pkg/sentry/fsimpl/devpts/slave.go | |
parent | 97e149dba422a98f771fff0ec37f8eaae8a6b7de (diff) | |
parent | 0a745cb3432d70b9b11adbe34a3d6b618f84419f (diff) |
Merge release-20200622.1-170-g0a745cb34 (automated)
Diffstat (limited to 'pkg/sentry/fsimpl/devpts/slave.go')
-rw-r--r-- | pkg/sentry/fsimpl/devpts/slave.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/sentry/fsimpl/devpts/slave.go b/pkg/sentry/fsimpl/devpts/slave.go index cf1a0f0ac..2018b978a 100644 --- a/pkg/sentry/fsimpl/devpts/slave.go +++ b/pkg/sentry/fsimpl/devpts/slave.go @@ -73,8 +73,8 @@ func (si *slaveInode) Valid(context.Context) bool { } // Stat implements kernfs.Inode.Stat. -func (si *slaveInode) Stat(vfsfs *vfs.Filesystem, opts vfs.StatOptions) (linux.Statx, error) { - statx, err := si.InodeAttrs.Stat(vfsfs, opts) +func (si *slaveInode) Stat(ctx context.Context, vfsfs *vfs.Filesystem, opts vfs.StatOptions) (linux.Statx, error) { + statx, err := si.InodeAttrs.Stat(ctx, vfsfs, opts) if err != nil { return linux.Statx{}, err } @@ -183,7 +183,7 @@ func (sfd *slaveFileDescription) SetStat(ctx context.Context, opts vfs.SetStatOp // Stat implements vfs.FileDescriptionImpl.Stat. func (sfd *slaveFileDescription) Stat(ctx context.Context, opts vfs.StatOptions) (linux.Statx, error) { fs := sfd.vfsfd.VirtualDentry().Mount().Filesystem() - return sfd.inode.Stat(fs, opts) + return sfd.inode.Stat(ctx, fs, opts) } // LockPOSIX implements vfs.FileDescriptionImpl.LockPOSIX. |