Hi, On Tue, Nov 06, 2007 at 09:56:51AM +0100, Adrian Bunk wrote:As far as I understand the problem now, isspace() accepts the 0xa0 character which might collide with some of UTF-8 encoded characters cause the high bit is set. I used "if (!isspace(c) && !isgraph(c)) return -EINVAL;" to test rules' characters validity which seems not enough. I'll add !isascii(c) in the condition and ask Casey to change the documentation to be something like: Smack labels are represented in ASCII characters, they cannot contain unprintable characters or the '/' (slash) character. and in write(): if (!isascii(c) return -EINVAL; if (!isspace(c) && !isgraph(c)) return -EINVAL; This satisfy above customized labels rule, right ? Regards, -- Ahmed S. Darwish Homepage: http://darwish.07.googlepages.com Blog: http://darwish-07.blogspot.com -
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| debian developer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Vu Pham | Re: [Scst-devel] Integration of SCST in the mainstream Linux kernel |
| Adrian Bunk | Re: Linux 2.6.21 |
git: | |
| Gerrit Renker | [PATCH 15/37] dccp: Set per-connection CCIDs via socket options |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Radu Rendec | Endianness problem with u32 classifier hash masks |
| Benjamin Herrenschmidt | [PATCH 0/11] ibm_newemac: Candidate patches for 2.6.25 |
