TOMOYO: Fix exception policy read failure.
authorTetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>
Fri, 13 Feb 2009 07:00:58 +0000 (16:00 +0900)
committerJames Morris <jmorris@namei.org>
Sat, 14 Feb 2009 01:33:30 +0000 (12:33 +1100)
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

index 92af8f50e0fa191d67a620b8ae8d59a6a46bec61..093a756030bd460ac5182483fef46d6ae8241bb6 100644 (file)
@@ -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,