[lkml]   [2003]   [Oct]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Where does user_path_walk() live?
On Sun, 12 Oct 2003 21:38:19 BST, 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

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....[unhandled content-type:application/pgp-signature]
 \ /
  Last update: 2005-03-22 13:49    [from the cache]
©2003-2011 Jasper Spaans