Re: [PATCH 3/3] tracing/filters: disallow newline as delimeter

From: Ingo Molnar
Date: Tue Apr 21 2009 - 06:07:41 EST



* Li Zefan <lizf@xxxxxxxxxxxxxx> wrote:

> Ingo Molnar wrote:
> > * Li Zefan <lizf@xxxxxxxxxxxxxx> wrote:
> >
> >> I guess because user input is often ended with '\n' (like "echo
> >> xxx"), thus '\n' is used as a delimeter besides ' ', but we can
> >> just strip tailing spaces.
> >
> > Hm, how about:
> >
> > ( echo 'x'
> > echo '|| y' ) > filter
> >
> > type of scripts? Shouldnt the parser be permissive in general?
> >
>
> This patch doesn't forbid this usage: ;)
>
> ( echo 'parent_comm == a'
> echo '|| parent_comm == b' ) > filter
>
> This patch does forbid this usage:
>
> ( echo 'parent_comm'
> echo '=='
> echo 'a' ) > filter

Same argument though, no?

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