Linux Security Modules development
 help / color / mirror / Atom feed
* [PATCH] tomoyo: Don't emit WARNING: string while fuzzing testing.
@ 2019-05-07 11:34 Tetsuo Handa
  2019-05-07 16:45 ` James Morris
  2019-05-08 22:53 ` James Morris
  0 siblings, 2 replies; 5+ messages in thread
From: Tetsuo Handa @ 2019-05-07 11:34 UTC (permalink / raw)
  To: James Morris; +Cc: linux-security-module, Tetsuo Handa, Dmitry Vyukov

Commit cff0e6c3ec3e6230 ("tomoyo: Add a kernel config option for fuzzing
testing.") enabled the learning mode, and syzbot started crashing by
encountering this warning message. Disable this warning if built for
fuzzing testing; otherwise syzbot can't start fuzzing testing.

Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Cc: Dmitry Vyukov <dvyukov@google.com>
---
 security/tomoyo/util.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/security/tomoyo/util.c b/security/tomoyo/util.c
index 0517cbd..52752e1 100644
--- a/security/tomoyo/util.c
+++ b/security/tomoyo/util.c
@@ -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;
 }
-- 
1.8.3.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-05-08 22:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-07 11:34 [PATCH] tomoyo: Don't emit WARNING: string while fuzzing testing Tetsuo Handa
2019-05-07 16:45 ` James Morris
2019-05-07 16:49   ` Dmitry Vyukov
2019-05-07 20:54     ` Tetsuo Handa
2019-05-08 22:53 ` James Morris

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox