summaryrefslogtreecommitdiffstats
path: root/security/tomoyo/util.c
diff options
context:
space:
mode:
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>2019-05-07 13:34:22 +0200
committerJames Morris <jamorris@linux.microsoft.com>2019-05-10 23:58:35 +0200
commit4ad98ac46490d5f8441025930070eaf028cfd0f2 (patch)
tree363c823ffb72e64e3bee364cc03dd6fc5d4677c3 /security/tomoyo/util.c
parenttomoyo: Change pathname calculation for read-only filesystems. (diff)
downloadlinux-4ad98ac46490d5f8441025930070eaf028cfd0f2.tar.xz
linux-4ad98ac46490d5f8441025930070eaf028cfd0f2.zip
tomoyo: Don't emit WARNING: string while fuzzing testing.
Commit cff0e6c3ec3e6230 ("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>
Diffstat (limited to '')
-rw-r--r--security/tomoyo/util.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/security/tomoyo/util.c b/security/tomoyo/util.c
index 0517cbdd7275..52752e1a84ed 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;
}