diff options
author | Dean Deng <deandeng@google.com> | 2020-08-05 08:33:52 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-08-05 08:35:41 -0700 |
commit | a2e129b540e530c56cb7648ae7e04325c6e763b1 (patch) | |
tree | 174ba837aed9fb7bfda7228758a81f6f252843b5 /pkg/sentry | |
parent | 0e6f7a12c29efa52581c38ca30637b133556a6cf (diff) |
Add missing case in tmpfs.inode.direntType.
This was discovered by syzkaller.
PiperOrigin-RevId: 325025193
Diffstat (limited to 'pkg/sentry')
-rw-r--r-- | pkg/sentry/fsimpl/tmpfs/tmpfs.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/sentry/fsimpl/tmpfs/tmpfs.go b/pkg/sentry/fsimpl/tmpfs/tmpfs.go index 68e615e8b..4681a2f52 100644 --- a/pkg/sentry/fsimpl/tmpfs/tmpfs.go +++ b/pkg/sentry/fsimpl/tmpfs/tmpfs.go @@ -558,6 +558,8 @@ func (i *inode) direntType() uint8 { return linux.DT_LNK case *socketFile: return linux.DT_SOCK + case *namedPipe: + return linux.DT_FIFO case *deviceFile: switch impl.kind { case vfs.BlockDevice: |