Re: [PATCH] Smackv10: Smack rules grammar + their stateful parser

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Linus Torvalds <torvalds@...>
Cc: Ahmed S. Darwish <darwish.07@...>, Pavel Machek <pavel@...>, Casey Schaufler <casey@...>, <akpm@...>, <linux-security-module@...>, <linux-kernel@...>, Al Viro <viro@...>
Date: Tuesday, November 6, 2007 - 7:00 pm

On Tue, Nov 06, 2007 at 07:39:09AM -0800, Linus Torvalds wrote:

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?


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

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Smackv10: Smack rules grammar + their stateful parser, Ahmed S. Darwish, (Sat Nov 3, 12:43 pm)
Re: [PATCH] Smackv10: Smack rules grammar + their stateful p..., Jakob Oestergaard, (Sat Nov 10, 1:05 pm)
Re: [PATCH] Smackv10: Smack rules grammar + their stateful p..., Adrian Bunk, (Tue Nov 6, 7:00 pm)