Re: Getting full path from dentry in LSM hooks

From: Christoph Hellwig
Date: Fri Sep 03 2004 - 07:35:18 EST


On Fri, Sep 03, 2004 at 02:12:21PM +0200, Kristian Sørensen wrote:
> I have a short question, concerning how to get the full path of a file
> from a LSM hook.
>
> - If the "file" of the dentry is located in the root filesystem: no
> problem - simply traverse the dentrys, to generate the path.
>
> - If the "file" is mounted from another partition, you do not get the
> full path by traversing the dentrys.

There is no canonical full path for a given dentry.

-
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/