Re: Where does user_path_walk() live?

From: viro
Date: Sun Oct 12 2003 - 16:42:29 EST


On Sun, Oct 12, 2003 at 04:59:58PM -0400, Valdis.Kletnieks@xxxxxx wrote:
> 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 .

Ehh... First of all, you'll end up doing a metric buttload of getdents()
for no good reason every time you want to search for something. And on
the kernel source that's pretty noticable.

Moreover, you generally do *not* want to deal with every file in the tree -
find . -name *.[chS] does it nicely, grep -r can't do that at all.

grep -r is a pointless GNUism. It's not safer than find + xargs grep, it's
weaker than use of find and it's non-portable to boot...
-
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/