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

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <bunk@...>
Cc: <pavel@...>, <torvalds@...>, <darwish.07@...>, <casey@...>, <akpm@...>, <linux-security-module@...>, <linux-kernel@...>, <viro@...>
Date: Tuesday, November 6, 2007 - 8:27 am

Hello.

Adrian Bunk wrote:
Don't worry. The "\?" pattern is for temporary files with /tmp/prefixXXXXXX pattern.
/tmp/prefixXXXXXX is represented as /tmp/prefix\?\?\?\?\?\? in TOMOYO Linux's syntax.

The "\*" pattern is for this purpose which means more than 0 byte characters other than '/'.

TOMOYO supports various patterns
http://tomoyo.sourceforge.jp/en/1.5.x/policy-reference.html#exception_policy.conf

TOMOYO Linux handles string using 7bit ASCII. In TOMOYO Linux,
a byte 0x21 <= c <= 0x7E && c != 0x5C is represented as is,
c == 0x5C is represented as \\,
0x01 <= c <= 0x20 || 0x7F <= c <= 0xFF is represented as \ooo style.
c == 0x00 is not needed since it is used as end-of-string marker.
This rule makes any string passed from/to kernel safely.

Thanks.

-
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..., Tetsuo Handa, (Tue Nov 6, 8:27 am)