[apparmor] [PATCH] 2/6: man page updates

Jamie Strandboge jamie at canonical.com
Mon Dec 20 14:02:08 GMT 2010


On Sun, 2010-12-19 at 14:08 -0800, John Johansen wrote:
> > Am Sonntag, 19. Dezember 2010 schrieb Jamie Strandboge:
> >> On Sun, 2010-12-19 at 07:50 -0600, Jamie Strandboge wrote:
> >>> 0002-add-inverted-character.patch: parser/apparmor.d.pod: add [^]
> > 
> >> +=item B<[^d-z]>
> >> +
> >> +will substitute for the single character a, b, or c
> > 
> > Not really correct *) - it allows _everything except_ d, e, ... y, z. 
> > Yes, this includes a, b and c, but it also includes digits, -, _, A...Z 
> > etc.
> > 
> > *) at least if it follows normal RegEx or file glob syntax - I don't 
> > have a system with 2.5.x to verify it. If it is based on RegEx, then it 
> > even allows a "/".
> > 
> it is everything except what is explicitly listed, and in the case of
> pathnames I believe we are adding an implicit [^\000] (and if we are not
> we should be) just as we do for globs. eg. * == [^/\000].
> 
> The caveat is that the parser is responsible for converting the character
> set matching and it is done in 8 bit lc_local encoding, which is a long
> outstanding bug.  We should be taking the actual encoding setting and
> converting characters to the internal format.

pfft, of course you guys are right (duh). I'd be happy to update that.
How about:
"=item B<[^a-c]>

will substitute for any single character not matching a, b or c"

I think I'll leave out the [^\000] for now, since we don't mention it
with '*' either.


-- 
Jamie Strandboge             | http://www.canonical.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/apparmor/attachments/20101220/86bfc316/attachment.pgp 


More information about the AppArmor mailing list