Kernel hacking - problem with getting the inode of file.
I've got a problem with getting the inode struct which is in file->dentry struct. One way to get the file struct is :
and when i try to play with file with permission like /bin/su (includeing it)
struct file *filep;
filep=filp_open(filename, 0, 0);
-rws--x--x 1 root bin 35780 Jun 21 21:20 /bin/su*
the i got I/O error.
How to solve it? Maybe there is other way to get the inode struct in kernel when we know only the name of a file?