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

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