Re: [RFC][CFLART] ipmi procfs bogosity
From: Ingo Oeser
Date: Mon Sep 05 2005 - 05:56:26 EST
Hi,
On Thursday 01 September 2005 22:30, Alexey Dobriyan wrote:
> On Thu, Sep 01, 2005 at 03:00:44PM -0500, Corey Minyard wrote:
> > Plus the scanning function I wrote handles arbitrary leading and
> > trailing space, etc. Not a big deal, but a little nicer.
>
> You can say from the beggining that
>
> echo -n " 2 " >/proc/FUBAR
>
> is illegal and don't add bloat to kernel.
No, user interfaces should be robust.
Just remember the mantra "Be liberal in what you accept and
conservative in what you send."
I would suggest adding sth. like Coreys user_strtoul() to lib/string.c
which would reduce bloat and security threats for the kernel.
Regards
Ingo Oeser
Attachment:
pgp00000.pgp
Description: PGP signature