From: Tetsuo Handa Date: Fri, 13 Feb 2009 07:00:58 +0000 (+0900) Subject: TOMOYO: Fix exception policy read failure. X-Git-Tag: v2.6.30-rc1~679^2~14 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=33043cbb9fd49a957089f5948fe814764d7abbd6;p=linux.git TOMOYO: Fix exception policy read failure. Due to wrong initialization, "cat /sys/kernel/security/tomoyo/exception_policy" returned nothing. Signed-off-by: Kentaro Takeda Signed-off-by: Tetsuo Handa Signed-off-by: Toshiharu Harada Signed-off-by: James Morris --- diff --git a/security/tomoyo/domain.c b/security/tomoyo/domain.c index 92af8f50e0fa..093a756030bd 100644 --- a/security/tomoyo/domain.c +++ b/security/tomoyo/domain.c @@ -376,7 +376,7 @@ int tomoyo_write_domain_keeper_policy(char *data, const bool is_not, bool tomoyo_read_domain_keeper_policy(struct tomoyo_io_buffer *head) { struct list_head *pos; - bool done = false; + bool done = true; down_read(&tomoyo_domain_keeper_list_lock); list_for_each_cookie(pos, head->read_var2,