[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20071106230044.GO26163@stusta.de>
Date: Wed, 7 Nov 2007 00:00:44 +0100
From: Adrian Bunk <bunk@...nel.org>
To: Linus Torvalds <torvalds@...ux-foundation.org>
Cc: "Ahmed S. Darwish" <darwish.07@...il.com>,
Pavel Machek <pavel@....cz>,
Casey Schaufler <casey@...aufler-ca.com>,
akpm@...ux-foundation.org, linux-security-module@...r.kernel.org,
linux-kernel@...r.kernel.org, Al Viro <viro@....linux.org.uk>
Subject: Re: [PATCH] Smackv10: Smack rules grammar + their stateful parser
On Tue, Nov 06, 2007 at 07:39:09AM -0800, Linus Torvalds wrote:
>
>
> On Tue, 6 Nov 2007, Adrian Bunk wrote:
> >
> > How do we get the information about the character encoding of the string
> > to be parsed into the kernel?
>
> I really would expect that kernel strings don't have an encoding. They're
> just C strings: a NUL-terminated stream of bytes.
You were the one who suggested to _parse_ strings in the kernel.
Some basic parsing is possible due to the fact that all encodings you
usually get are extensions of ASCII with additional properties.
But in this thread we discussed that the following implemented things
in Smack and TOMOYO currently do not work correctly when the string
is encoded in UTF-8:
- isgraph()
- isspace()
- match one character
How do you suggest to implement them in a safe way without knowing about
the encoding?
> Linus
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists