Hi!
I have a couple of questions about the memory paging in the Linux kernel.
1) For security reasons I would like to be able to see the file name of a file being paged. In mpage_readpage(s) the page is assembled. I thought maybe I could use the address_space->inode->i_dentry somehow. It seems that the dentry-struct contains the information I'm interested in. However, the i_dentry variable in the inode is only linked list without any actual data, as far as I can see. This i_dentry variable has type struct list_head, and this only contains next- and prev-pointers and no data
Any suggestions on how to proceed? Am I on the right track here, or can I get a hold of the file name information in some other way while paging?
2) From mpage_readpage(s) (again) I get the pages assembled. I would like to be able to see if a page that is assembled is the last page of the file. Is there any way of doing this, and how in that case?
Any help much appreciated!
Best Regards
/Rita