diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-07-01 20:26:09 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-07-01 20:26:09 +0000 |
commit | 68f56161e21a352989caf23fb965ad82d9836622 (patch) | |
tree | ed6b8ef35e1ff9cc7a1b825df822d1abaeca8020 /pkg/sentry/kernel | |
parent | cb5ca78e5ed54b255c0b46ea5e179094fbe755d3 (diff) | |
parent | 6a90c88b97481a6d81b05f09d5c8ed7158225dd5 (diff) |
Merge release-20200622.1-52-g6a90c88b9 (automated)
Diffstat (limited to 'pkg/sentry/kernel')
-rw-r--r-- | pkg/sentry/kernel/pipe/vfs.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/sentry/kernel/pipe/vfs.go b/pkg/sentry/kernel/pipe/vfs.go index a4519363f..45d4c5fc1 100644 --- a/pkg/sentry/kernel/pipe/vfs.go +++ b/pkg/sentry/kernel/pipe/vfs.go @@ -200,6 +200,11 @@ func (fd *VFSPipeFD) Readiness(mask waiter.EventMask) waiter.EventMask { } } +// Allocate implements vfs.FileDescriptionImpl.Allocate. +func (fd *VFSPipeFD) Allocate(ctx context.Context, mode, offset, length uint64) error { + return syserror.ESPIPE +} + // EventRegister implements waiter.Waitable.EventRegister. func (fd *VFSPipeFD) EventRegister(e *waiter.Entry, mask waiter.EventMask) { fd.pipe.EventRegister(e, mask) |