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