TOMOYO: Fix wrong domainname in tomoyo_init_log().
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Thu, 30 Jun 2011 08:32:30 +0000 (17:32 +0900)
committerJames Morris <jmorris@namei.org>
Thu, 30 Jun 2011 23:25:47 +0000 (09:25 +1000)
Commit eadd99cc "TOMOYO: Add auditing interface." by error replaced
"struct tomoyo_request_info"->domain with tomoyo_domain().

Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: James Morris <jmorris@namei.org>
security/tomoyo/audit.c

index f2c869767d79fbb30fb41e4d40a9ff19c7c36bcf..967b5648dce3839c5427c751aa431506ee29f949 100644 (file)
@@ -69,7 +69,7 @@ char *tomoyo_init_log(struct tomoyo_request_info *r, int len, const char *fmt,
        char *buf = NULL;
        const char *header = NULL;
        int pos;
-       const char *domainname = tomoyo_domain()->domainname->name;
+       const char *domainname = r->domain->domainname->name;
        header = tomoyo_print_header(r);
        if (!header)
                return NULL;