[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Umbrella-devel] Re: Getting full path from dentry in LSM hooks


On Fri, Sep 03, 2004 at 02:38:12PM +0200, Kristian Sørensen wrote:
> Is there another way to get it? We also get an inodepointer from the LSM 
> hook. As far as I know, the file struct has an entry called vfs_mount, 
> which has an entry called root_mnt - could this be used? (and if so, how 
> do I get from the Inode to the file struct? :-/ )

Witch a struct file you can use d_path which gives you a canonical path
in the _current_ _namespace_.

What do you want to do with the path anyway?

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


This mailing list archive is a service of Copilot Consulting.