[tomoyo-users 825] Re: 数値パラメータのパターン化

Back to archive index

Tetsuo Handa from-****@I-lov*****
2011年 5月 23日 (月) 13:18:10 JST


早間義博 さんは書きました:
>    number_group all_mod 0-0777
>    number_group usr_ioctl 0x5401-0x541B
>    number_group ANY_NUMBER 0-0xFFFFFFFF
> 
> しかし、tomoyo-checkpolicy ではエラーになります。

ご報告ありがとうございます。 TOMOYO 1.7 と 2.3 のバグですね。
以下のパッチで直ります。

--- tomoyo-tools/usr_sbin/tomoyo-checkpolicy.c
+++ tomoyo-tools/usr_sbin/tomoyo-checkpolicy.c
@@ -746,7 +746,7 @@
 	data = cp;
 	cp = strchr(data, '-');
 	if (cp)
-		*cp = '\0';
+		*cp++ = '\0';
 	if (!tomoyo_parse_ulong(&v, &data) || *data) {
 		printf("%u: ERROR: '%s' is a bad number.\n", tomoyo_line, data);
 		tomoyo_errors++;




tomoyo-users メーリングリストの案内
Back to archive index