From 08bbad690764dd55e333cade340d779df93de920 Mon Sep 17 00:00:00 2001 From: Ayush Ranjan Date: Wed, 23 Sep 2020 18:43:16 -0700 Subject: [vfs] kernfs: Enable leak checking consistently. There were some instances where we were not enabling leak checking. PiperOrigin-RevId: 333418571 --- pkg/sentry/fsimpl/fuse/fusefs.go | 1 + 1 file changed, 1 insertion(+) (limited to 'pkg/sentry/fsimpl/fuse') diff --git a/pkg/sentry/fsimpl/fuse/fusefs.go b/pkg/sentry/fsimpl/fuse/fusefs.go index 4178436dd..1d42a51f4 100644 --- a/pkg/sentry/fsimpl/fuse/fusefs.go +++ b/pkg/sentry/fsimpl/fuse/fusefs.go @@ -280,6 +280,7 @@ func (fs *filesystem) newRootInode(creds *auth.Credentials, mode linux.FileMode) i := &inode{fs: fs} i.InodeAttrs.Init(creds, linux.UNNAMED_MAJOR, fs.devMinor, 1, linux.ModeDirectory|0755) i.OrderedChildren.Init(kernfs.OrderedChildrenOptions{}) + i.EnableLeakCheck() i.dentry.Init(i) i.nodeID = 1 -- cgit v1.2.3