Skip to content

Commit

Permalink
tomoyo: Don't emit WARNING: string while fuzzing testing.
Browse files Browse the repository at this point in the history
Commit cff0e6c ("tomoyo: Add a kernel config option for fuzzing
testing.") enabled the learning mode, but syzkaller is detecting any
"WARNING:" string as a crash. Thus, disable TOMOYO's quota warning if
built for fuzzing testing.

Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Cc: Dmitry Vyukov <dvyukov@google.com>
Signed-off-by: James Morris <jamorris@linux.microsoft.com>
  • Loading branch information
Tetsuo Handa authored and James Morris committed May 10, 2019
1 parent 27df4b4 commit 4ad98ac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions security/tomoyo/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -1076,8 +1076,10 @@ bool tomoyo_domain_quota_is_ok(struct tomoyo_request_info *r)
domain->flags[TOMOYO_DIF_QUOTA_WARNED] = true;
/* r->granted = false; */
tomoyo_write_log(r, "%s", tomoyo_dif[TOMOYO_DIF_QUOTA_WARNED]);
#ifndef CONFIG_SECURITY_TOMOYO_INSECURE_BUILTIN_SETTING
pr_warn("WARNING: Domain '%s' has too many ACLs to hold. Stopped learning mode.\n",
domain->domainname->name);
#endif
}
return false;
}

0 comments on commit 4ad98ac

Please sign in to comment.