lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 6 Nov 2007 23:32:15 +0900
From:	Tetsuo Handa <penguin-kernel@...ove.SAKURA.ne.jp>
To:	bunk@...nel.org
Cc:	pavel@....cz, torvalds@...ux-foundation.org, darwish.07@...il.com,
	casey@...aufler-ca.com, akpm@...ux-foundation.org,
	linux-security-module@...r.kernel.org,
	linux-kernel@...r.kernel.org, viro@....linux.org.uk
Subject: Re: [PATCH] Smackv10: Smack rules grammar + their stateful parser

Hello.

Adrian Bunk wrote:
> And \* is not a replacement for \?. It's quite common to have both ways 
> to express "one character" and to express "at least one character", and 
> both have their use cases and will get used if available.
You can use \? to represent "one character" and
\?\* to represent "at least one character".

> But the problem is that in your code you only match one byte for \?, 
> and this might or might not be equal to one character.
"one byte" is almost equal to "one character".
"\?" matches to one of the following types.

*  1 ASCII printable character (for 0x21-0x2E or 0x30-0x5B or 0x5D-0x7E)
*  2 ASCII printable characters \\ (for 0x5C, which means single "\")
*  4 ASCII printable characters \ooo (for 0x01-0x20 or 0x7F-0xFF, where "ooo" is octal value)

These 3 types represents one *byte*.
I want to say "\? matches to one character",
but since expression of a character depends on the value of that byte,
I'm saying "\? matches to one *byte* character" instead.
Well, this sentence might be confusing, but how can I express more accurately?

Thanks.

-
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ