doczkal / rpms / abrt

Forked from rpms/abrt 4 years ago
Clone

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

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