|
From: Mimi Z. <zo...@li...> - 2009-11-29 05:44:01
|
On Thu, 2009-11-26 at 11:04 +0100, Roberto Sassu wrote: > Hello all > > i have a question about the code of the ima_path_check() function located in > the file security/integrity/ima/ima_main.c of the kernel sources, version > 2.6.31.6. > > I see at some point the functions dget, mntget are called but i've not found > the correspondent dput and mntput used to decrease the reference counts > respectively for the dentry and vfsmount structure. There is a reason for that > or these functions are missing? > > Thanks for replies On dentry_open() failure, dentry_open() decrements the counters. On success, fput, at the bottom of the function, decrements the counters. Mimi |