From a2e129b540e530c56cb7648ae7e04325c6e763b1 Mon Sep 17 00:00:00 2001 From: Dean Deng Date: Wed, 5 Aug 2020 08:33:52 -0700 Subject: Add missing case in tmpfs.inode.direntType. This was discovered by syzkaller. PiperOrigin-RevId: 325025193 --- pkg/sentry/fsimpl/tmpfs/tmpfs.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pkg/sentry') 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: -- cgit v1.2.3