Re: Modprobe local root exploit

From: H. Peter Anvin (hpa@zytor.com)
Date: Thu Nov 16 2000 - 01:04:47 EST


Followup to: <E13wHVO-0007VB-00@the-village.bc.nu>
By author: Alan Cox <alan@lxorguk.ukuu.org.uk>
In newsgroup: linux.dev.kernel
>
> > >> + if ((*p & 0xdf) >= 'a' && (*p & 0xdf) <= 'z') continue;
> >
> > Francis> Just in case... Some modules have uppercase letters too :)
> >
> > That's what the &0xdf is intended for...
>
> That looks wrong for UTF8 which is technically what the kernel uses 8)
>

No, it's correct, actually, but probably not what you want. It will
include all letters [A-Za-z], but if a module named "ärlig"...

        -hpa

-- 
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Nov 23 2000 - 21:00:09 EST