In order to add some security measure for Linux kernel I am trying to add extra flags in the inode structure.
A system call would check this flag if its set for a certain file.
So how can I access the inode structure (through a pointer probably) of a file knowing its directory &/or its inode number?