<div>Hello dear list members!</div><div> </div><div>I have I hook in linux security ops on bprm_check_security()</div><div> </div><div>and I print the i_count of inode inside my hook</div><div> </div><div>I started several instances of cat utility but the i_count stays equal 1, while write count decreases in negative numbers.</div><div> </div><div><div>  </div><div>       printk("INODES: %s, %p, %ld, ", filename, dentry-&gt;d_inode, dentry-&gt;d_inode-&gt;i_ino);</div><div>        printk("%d, %d, %d\n", atomic_read(&amp;dentry-&gt;d_inode-&gt;i_count),&gt;i_dio_count), atomic_read(&amp;dentry-&gt;d_inode-&gt;i_writecount));</div><div> </div><div> </div><div>The inode number printed by this code snippet correctly points to my /bin/cat utility ( verified with stat comand</div><div> </div><div> </div><div>So I am very puzzled, I see that code of fs/namei.c increments and decrements i_count.</div><div> </div><div>Is there any reason that i_count of executable and shared object is not reference counted?</div><div> </div><div>Is there another methods I can distinguish between first time execution and repeated?</div><div> </div><div>Thank you.</div><div>Lev.</div><div> </div><div> </div></div><div> </div>