login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
November
»
5
Re: [PATCH] Smackv10: Smack rules grammar + their stateful parser
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Ahmed S. Darwish <darwish.07@...>
To: Linus Torvalds <torvalds@...>
Cc: Pavel Machek <pavel@...>, Casey Schaufler <casey@...>, <akpm@...>, <linux-security-module@...>, <linux-kernel@...>, Al Viro <viro@...>
Subject:
Re: [PATCH] Smackv10: Smack rules grammar + their stateful parser
Date: Monday, November 5, 2007 - 7:38 pm
On 11/5/07, Linus Torvalds <torvalds@linux-foundation.org> wrote:
quoted text
> > > On Mon, 5 Nov 2007, Ahmed S. Darwish wrote: > > > On Sun, Nov 04, 2007 at 12:28:48PM +0000, Pavel Machek wrote: > > > > > > Can we avoid string parsers in the kernel? > > > > > > > Ok, Could someone suggest a better idea please ?. > > I personally think string parsers are *much* better than the alternatives > (which basically boil down to nasty binary interfaces) > > > I thought about packing the rules in a structure and sending > > it over an ioctl() command. Is this applicable ? > > That's *MUCH* worse. > > Strings are nice. They aren't that complex, and as long as it's not a > performance-critical area, there are basically no downsides. > > Binary structures and ioctl's are *much* worse. They are totally > undebuggable with generic tools (think "echo" or "strace"), and they are a > total nightmare to parse across architectures and pointer sizes. > > So the rule should be: always use strings if at all possible and relevant. > If the data is fundamentally binary, it shouldn't be re-coded to ascii (no > real advantage), but if the data is "stringish", and there aren't big > performance issues, then keep it as strings. >
Thanks a lot for such a kind advice. I'll keep that in my mind. Regards, -- Ahmed S. Darwish Homepage:
http://darwish.07.googlepages.com
Blog:
http://darwish-07.blogspot.com
-
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH] Version 10 (2.6.24-rc1) Smack: Simplified Mandatory ...
, Casey Schaufler
, (Fri Nov 2, 4:50 pm)
[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...
, Adrian Bunk
, (Tue Nov 6, 2:33 am)
Re: [PATCH] Smackv10: Smack rules grammar + their stateful p...
, Kyle Moffett
, (Tue Nov 6, 4:26 am)
Re: [PATCH] Smackv10: Smack rules grammar + their stateful p...
, Adrian Bunk
, (Tue Nov 6, 4:56 am)
Re: [PATCH] Smackv10: Smack rules grammar + their stateful p...
, Ahmed S. Darwish
, (Tue Nov 6, 7:34 am)
Re: [PATCH] Smackv10: Smack rules grammar + their stateful p...
, Adrian Bunk
, (Tue Nov 6, 7:47 am)
Re: [PATCH] Smackv10: Smack rules grammar + their stateful p...
, Ahmed S. Darwish
, (Tue Nov 6, 8:23 am)
Re: [PATCH] Smackv10: Smack rules grammar + their stateful p...
, Kyle Moffett
, (Tue Nov 6, 8:49 am)
Re: [PATCH] Smackv10: Smack rules grammar + their stateful p...
, Linus Torvalds
, (Tue Nov 6, 11:53 am)
[PATCH] Fix isspace() and other ctype.h functions to ignore ...
, Kyle Moffett
, (Wed Nov 7, 6:56 am)
Re: [PATCH] Smackv10: Smack rules grammar + their stateful p...
, Adrian Bunk
, (Tue Nov 6, 9:34 am)
Re: [PATCH] Smackv10: Smack rules grammar + their stateful p...
, Ahmed S. Darwish
, (Tue Nov 6, 10:05 am)
Re: [PATCH] Smackv10: Smack rules grammar + their stateful p...
, Adrian Bunk
, (Tue Nov 6, 10:10 am)
Re: [PATCH] Smackv10: Smack rules grammar + their stateful p...
, Ahmed S. Darwish
, (Tue Nov 6, 10:30 am)
Re: [PATCH] Smackv10: Smack rules grammar + their stateful p...
, Alan Cox
, (Tue Nov 6, 7:02 am)
[PATCH] Smackv10: Smack rules grammar + their stateful parse...
, Ahmed S. Darwish
, (Sun Nov 4, 8:56 pm)
Re: [PATCH] Smackv10: Smack rules grammar + their stateful p...
, Pavel Machek
, (Sun Nov 11, 8:44 am)
Re: [PATCH] Smackv10: Smack rules grammar + their stateful p...
, Ahmed S. Darwish
, (Sun Nov 11, 2:37 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...
, Ahmed S. Darwish
, (Sat Nov 10, 3:45 pm)
Re: [PATCH] Smackv10: Smack rules grammar + their stateful p...
, Ahmed S. Darwish
, (Sun Nov 4, 4:06 pm)
Re: [PATCH] Smackv10: Smack rules grammar + their stateful p...
, Pavel Machek
, (Sun Nov 4, 8:28 am)
Re: [PATCH] Smackv10: Smack rules grammar + their stateful p...
, Ahmed S. Darwish
, (Mon Nov 5, 5:41 am)
Re: [PATCH] Smackv10: Smack rules grammar + their stateful p...
, Linus Torvalds
, (Mon Nov 5, 12:21 pm)
Re: [PATCH] Smackv10: Smack rules grammar + their stateful p...
, Adrian Bunk
, (Tue Nov 6, 4:06 am)
Re: [PATCH] Smackv10: Smack rules grammar + their stateful p...
, Linus Torvalds
, (Tue Nov 6, 11:39 am)
Re: [PATCH] Smackv10: Smack rules grammar + their stateful p...
, Adrian Bunk
, (Tue Nov 6, 7:00 pm)
Re: [PATCH] Smackv10: Smack rules grammar + their stateful p...
, Linus Torvalds
, (Tue Nov 6, 7:08 pm)
Re: [PATCH] Smackv10: Smack rules grammar + their stateful p...
, Adrian Bunk
, (Tue Nov 6, 8:07 pm)
Re: [PATCH] Smackv10: Smack rules grammar + their stateful p...
, Linus Torvalds
, (Tue Nov 6, 8:27 pm)
Re: [PATCH] Smackv10: Smack rules grammar + their stateful p...
, Adrian Bunk
, (Tue Nov 6, 8:43 pm)
Re: [PATCH] Smackv10: Smack rules grammar + their stateful p...
, Linus Torvalds
, (Tue Nov 6, 9:06 pm)
Re: [PATCH] Smackv10: Smack rules grammar + their stateful p...
, Adrian Bunk
, (Tue Nov 6, 9:59 pm)
Re: [PATCH] Smackv10: Smack rules grammar + their stateful p...
, Alan Cox
, (Wed Nov 7, 11:08 am)
Re: [PATCH] Smackv10: Smack rules grammar + their stateful p...
, Linus Torvalds
, (Wed Nov 7, 12:09 am)
Re: [PATCH] Smackv10: Smack rules grammar + their stateful p...
, Tetsuo Handa
, (Tue Nov 6, 9:03 pm)
Re: [PATCH] Smackv10: Smack rules grammar + their stateful p...
, Ahmed S. Darwish
, (Mon Nov 5, 7:38 pm)
Re: [PATCH] Smackv10: Smack rules grammar + their stateful p...
, Tetsuo Handa
, (Mon Nov 5, 5:56 pm)
Re: [PATCH] Smackv10: Smack rules grammar + their stateful p...
, Adrian Bunk
, (Tue Nov 6, 6:00 am)
Re: [PATCH] Smackv10: Smack rules grammar + their stateful p...
, Tetsuo Handa
, (Tue Nov 6, 8:27 am)
Re: [PATCH] Smackv10: Smack rules grammar + their stateful p...
, Adrian Bunk
, (Tue Nov 6, 9:58 am)
Re: [PATCH] Smackv10: Smack rules grammar + their stateful p...
, Tetsuo Handa
, (Tue Nov 6, 10:32 am)
Re: [PATCH] Smackv10: Smack rules grammar + their stateful p...
, Adrian Bunk
, (Tue Nov 6, 10:59 am)
Re: [PATCH] Smackv10: Smack rules grammar + their stateful p...
, Tetsuo Handa
, (Tue Nov 6, 11:27 am)
Re: [PATCH] Smackv10: Smack rules grammar + their stateful p...
, Adrian Bunk
, (Tue Nov 6, 6:42 pm)
Re: [PATCH] Smackv10: Smack rules grammar + their stateful p...
, Ahmed S. Darwish
, (Sun Nov 4, 9:23 am)
Re: [PATCH] Smackv10: Smack rules grammar + their stateful p...
, Casey Schaufler
, (Sun Nov 4, 12:37 pm)
Re: [PATCH] Smackv10: Smack rules grammar + their stateful p...
, Kyle Moffett
, (Sat Nov 3, 2:30 pm)
Re: [PATCH] Smackv10: Smack rules grammar + their stateful p...
, Ahmed S. Darwish
, (Sat Nov 3, 6:12 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Andrew Morton
Re: Linux 2.6.21-rc4
Andrew Morton
-mm merge plans for 2.6.23
Greg KH
[GIT PATCH] driver core patches against 2.6.24
Balbir Singh
Re: [RFC][PATCH 2/7] RSS controller core
git
:
linux-netdev
:
Gerrit Renker
[PATCH 15/37] dccp: Set per-connection CCIDs via socket options
David Miller
[GIT]: Networking
Andreas Henriksson
[PATCH 06/12] Remove bogus reference to tc-filters(8) from tc(8) manpage.
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
1 user
and
853 guests
online.
Online users
kevdimech
Syndicate