From 746e0fc91c8e169f36e6e8678426d8aad23ca7d0 Mon Sep 17 00:00:00 2001 From: Nikola Pajkovsky Date: Mon, 15 Nov 2010 16:40:47 +0100 Subject: rhbz 623142 Save tainted flag from /proc/sys/kernel/tainted. When flag is set to 1 TAINED string is added to bugzilla summary. Signed-off-by: Nikola Pajkovsky --- lib/Plugins/Bugzilla.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'lib/Plugins/Bugzilla.cpp') diff --git a/lib/Plugins/Bugzilla.cpp b/lib/Plugins/Bugzilla.cpp index f3967cdf..e4255d2e 100644 --- a/lib/Plugins/Bugzilla.cpp +++ b/lib/Plugins/Bugzilla.cpp @@ -396,6 +396,8 @@ xmlrpc_int32 ctx::new_bug(const map_crash_data_t& pCrashData, int depend_on_bugn const std::string& duphash = get_crash_data_item_content(pCrashData, CD_DUPHASH); const char *reason = get_crash_data_item_content_or_NULL(pCrashData, FILENAME_REASON); const char *function = get_crash_data_item_content_or_NULL(pCrashData, FILENAME_CRASH_FUNCTION); + const char *analyzer = get_crash_data_item_content_or_NULL(pCrashData, FILENAME_ANALYZER); + const char *tainted = get_crash_data_item_content_or_NULL(pCrashData, FILENAME_TAINTED); std::string summary = "[abrt] " + package; if (function != NULL && strlen(function) < 30) @@ -409,6 +411,15 @@ xmlrpc_int32 ctx::new_bug(const map_crash_data_t& pCrashData, int depend_on_bugn summary += ": "; summary += reason; } + + if (tainted && analyzer + && (tainted[0] == '1') + && (strcmp(analyzer, "Kerneloops") == 0) + ) { + summary += ": "; + summary += "TAINTED"; + } + std::string status_whiteboard = "abrt_hash:" + duphash; std::string description = "abrt version: "VERSION"\n"; -- cgit