* Omen Wild (Omen.Wildat_private) wrote: > I have an inode, I would like to call dentry_open. I can get the > dentry. I cannot figure out how to get the vfsmount to pass to > dentry_open. Any ideas? There is no clean way to get it. All vfsmounts are created equal (similar to hard links on inodes) so distinguishing from multiple mounts and bind mounts is not possible. So, at best you can guess, or try them all. One way to know that they at least match is to look at the super_block's root and compare it against the mountpoint's root for each mountpoint in your namespace. Less than ideal, but it will work. Then you get to decide what to do if there is more than one match ;-) thanks, -chris -- Linux Security Modules http://lsm.immunix.org http://lsm.bkbits.net _______________________________________________ linux-security-module mailing list linux-security-moduleat_private http://mail.wirex.com/mailman/listinfo/linux-security-module
This archive was generated by hypermail 2b30 : Wed Jul 30 2003 - 12:07:52 PDT