This repository has been archived on 2026-01-16. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
abrt-addon-python3/0165-Only-analyze-vulnerabilities-when-coredump-present.patch
Matej Habrnal 69165ba9cc Introduce abrt-addon-python3 package
Signed-off-by: Matej Habrnal <mhabrnal@redhat.com>
2017-07-04 09:22:28 +02:00

34 lines
1.2 KiB
Diff

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