TOMOYO: Accept \000 as a valid character.
authorTetsuo Handa <from-tomoyo-users-en@I-love.SAKURA.ne.jp>
Sun, 15 Jan 2012 02:05:59 +0000 (11:05 +0900)
committerJames Morris <jmorris@namei.org>
Tue, 17 Jan 2012 23:40:59 +0000 (10:40 +1100)
commit25add8cf99c9ec8b8dc0acd8b9241e963fc0d29c
tree1fb0c0fadcf7544fee117f27ac667e4c444d634b
parent89879a7eb81f69e6f63bdb2a442fb765c46482c0
TOMOYO: Accept \000 as a valid character.

TOMOYO 2.5 in Linux 3.2 and later handles Unix domain socket's address.
Thus, tomoyo_correct_word2() needs to accept \000 as a valid character, or
TOMOYO 2.5 cannot handle Unix domain's abstract socket address.

Reported-by: Steven Allen <steven@stebalien.com>
Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
CC: stable@vger.kernel.org [3.2+]
Signed-off-by: James Morris <jmorris@namei.org>
security/tomoyo/util.c