diff options
author | Ayush Ranjan <ayushranjan@google.com> | 2020-09-23 18:43:16 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-09-23 18:45:16 -0700 |
commit | 08bbad690764dd55e333cade340d779df93de920 (patch) | |
tree | 34fa5d98a972d87ed07f2e780797499603f49bee /pkg/sentry/fsimpl/kernfs | |
parent | 9c8a6796fd88fbcffad1dd3fa80c301ec425fcbf (diff) |
[vfs] kernfs: Enable leak checking consistently.
There were some instances where we were not enabling leak checking.
PiperOrigin-RevId: 333418571
Diffstat (limited to 'pkg/sentry/fsimpl/kernfs')
-rw-r--r-- | pkg/sentry/fsimpl/kernfs/inode_impl_util.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/sentry/fsimpl/kernfs/inode_impl_util.go b/pkg/sentry/fsimpl/kernfs/inode_impl_util.go index ee9c2f45f..5cc196980 100644 --- a/pkg/sentry/fsimpl/kernfs/inode_impl_util.go +++ b/pkg/sentry/fsimpl/kernfs/inode_impl_util.go @@ -574,6 +574,7 @@ var _ Inode = (*StaticDirectory)(nil) func NewStaticDir(creds *auth.Credentials, devMajor, devMinor uint32, ino uint64, perm linux.FileMode, children map[string]*Dentry, fdOpts GenericDirectoryFDOptions) *Dentry { inode := &StaticDirectory{} inode.Init(creds, devMajor, devMinor, ino, perm, fdOpts) + inode.EnableLeakCheck() dentry := &Dentry{} dentry.Init(inode) |