Blame SOURCES/0165-Only-analyze-vulnerabilities-when-coredump-present.patch

06486d
From aedc22529c52c9f25236e3eedf2aec20dddf8a56 Mon Sep 17 00:00:00 2001
06486d
From: Martin Milata <mmilata@redhat.com>
06486d
Date: Thu, 4 Dec 2014 15:20:34 +0100
06486d
Subject: [PATCH] Only analyze vulnerabilities when coredump present
06486d
06486d
Also only generate core_backtrace if it's not already present.
06486d
06486d
Related to #882.
06486d
06486d
Signed-off-by: Martin Milata <mmilata@redhat.com>
06486d
---
06486d
 src/plugins/ccpp_event.conf | 6 +++---
06486d
 1 file changed, 3 insertions(+), 3 deletions(-)
06486d
06486d
diff --git a/src/plugins/ccpp_event.conf b/src/plugins/ccpp_event.conf
06486d
index 62ff08a..f4f3828 100644
06486d
--- a/src/plugins/ccpp_event.conf
06486d
+++ b/src/plugins/ccpp_event.conf
06486d
@@ -16,9 +16,9 @@ EVENT=post-create analyzer=CCpp
06486d
         fi
06486d
         # Try generating backtrace, if it fails we can still use
06486d
         # the hash generated by abrt-action-analyze-c
06486d
-        ##satyr migration:
06486d
-        #satyr abrt-create-core-stacktrace "$DUMP_DIR"
06486d
-        abrt-action-generate-core-backtrace
06486d
+        [ ! -e core_backtrace ] && abrt-action-generate-core-backtrace
06486d
+        # Run GDB plugin to see if crash looks exploitable
06486d
+        [ -r coredump ] && abrt-action-analyze-vulnerability
06486d
         # Generate hash
06486d
         abrt-action-analyze-c &&
06486d
         abrt-action-list-dsos -m maps -o dso_list &&
06486d
-- 
06486d
2.4.3
06486d