Messages in this thread | ![/](/images/icornerl.gif) | | Subject | Re: Where does user_path_walk() live? | From | Valdis.Kletnieks@vt ... | Date | Sun, 12 Oct 2003 16:59:58 -0400 |
| |
On Sun, 12 Oct 2003 21:38:19 BST, viro@parcelfarce.linux.theplanet.co.uk 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.... [unhandled content-type:application/pgp-signature] | ![\](/images/icornerr.gif) |