aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>2009-02-13 02:00:58 -0500
committerJames Morris <jmorris@namei.org>2009-02-13 20:33:30 -0500
commit33043cbb9fd49a957089f5948fe814764d7abbd6 (patch)
tree66be66415be5a1108788291194cc5b2bc89fb6fe
parent26036651c562609d1f52d181f9d2cccbf89929b1 (diff)
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>
-rw-r--r--security/tomoyo/domain.c2
1 files changed, 1 insertions, 1 deletions
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,
376bool tomoyo_read_domain_keeper_policy(struct tomoyo_io_buffer *head) 376bool tomoyo_read_domain_keeper_policy(struct tomoyo_io_buffer *head)
377{ 377{
378 struct list_head *pos; 378 struct list_head *pos;
379 bool done = false; 379 bool done = true;
380 380
381 down_read(&tomoyo_domain_keeper_list_lock); 381 down_read(&tomoyo_domain_keeper_list_lock);
382 list_for_each_cookie(pos, head->read_var2, 382 list_for_each_cookie(pos, head->read_var2,