TOMOYO: Fix exception policy read failure.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Thursday, March 26, 2009 - 12:01 pm

Gitweb:     http://git.kernel.org/linus/33043cbb9fd49a957089f5948fe814764d7abbd6
Commit:     33043cbb9fd49a957089f5948fe814764d7abbd6
Parent:     26036651c562609d1f52d181f9d2cccbf89929b1
Author:     Tetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>
AuthorDate: Fri Feb 13 16:00:58 2009 +0900
Committer:  James Morris <jmorris@namei.org>
CommitDate: Sat Feb 14 12:33:30 2009 +1100

    TOMOYO: Fix exception policy read failure.
    
    Due to wrong initialization, "cat /sys/kernel/security/tomoyo/exception_policy"
    returned nothing.
    
    Signed-off-by: Kentaro Takeda <takedakn@nttdata.co.jp>
    Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
    Signed-off-by: Toshiharu Harada <haradats@nttdata.co.jp>
    Signed-off-by: James Morris <jmorris@namei.org>
---
 security/tomoyo/domain.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/security/tomoyo/domain.c b/security/tomoyo/domain.c
index 92af8f5..093a756 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,
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
TOMOYO: Fix exception policy read failure., Linux Kernel Mailing ..., (Thu Mar 26, 12:01 pm)