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

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