Re: Where does user_path_walk() live?

From: Valdis . Kletnieks
Date: Sun Oct 12 2003 - 16:01:22 EST


On Sun, 12 Oct 2003 21:38:19 BST, viro@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx said:
> On Sun, Oct 12, 2003 at 01:26:09PM -0700, kevin conaway wrote:
> > I am a student doing an independent study on
> > filesystem security and I was trying to pin down
>
> man find
> man xargs
> man grep
>
> RTFUnixFAQ

Actually, the answer Kevin wanted was:

cd /usr/src/linux
grep -r __user_walk .

which will tell you it's in fs/namei.c - near line 967 for 2.6.9-test7 tree.

Unfortunately, it's basically a wrapper for path_lookup (also in fs/namei.c maybe
110 lines up from there).. which will drop you into link_path_walk() a ways above
that. link_path_walk() is where the actual fun happens - note that most of
link_path_walk()'s actual work is done by calls to do_lookup() and follow_mount().

I would suggest Kevin read and understand *ALL* of fs/namei.c....

Attachment: pgp00001.pgp
Description: PGP signature