Move the default dump location to /var/spool/abrt from /var/tmp/abrt and Use root for owner of all dump directories Fixes for CVE-2015-3315, CVE-2015-3142, CVE-2015-1869, CVE-2015-1870 Fixes for CVE-2015-3147, CVE-2015-3151, CVE-2015-3150, CVE-2015-3159 Resolves: #1179752 Signed-off-by: Matej Habrnal <mhabrnal@redhat.com>
29 lines
1,016 B
Diff
29 lines
1,016 B
Diff
From 0d9f9bba421c8271e52b67320b161c60bcf0151d Mon Sep 17 00:00:00 2001
|
|
From: Jakub Filak <jfilak@redhat.com>
|
|
Date: Wed, 21 Jan 2015 10:41:05 +0100
|
|
Subject: [PATCH] core: use updated dump_fd_info()
|
|
|
|
Related to abrt/libreport#320
|
|
|
|
Signed-off-by: Jakub Filak <jfilak@redhat.com>
|
|
---
|
|
src/hooks/abrt-hook-ccpp.c | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/src/hooks/abrt-hook-ccpp.c b/src/hooks/abrt-hook-ccpp.c
|
|
index 37a9a74..e1d81b6 100644
|
|
--- a/src/hooks/abrt-hook-ccpp.c
|
|
+++ b/src/hooks/abrt-hook-ccpp.c
|
|
@@ -630,7 +630,8 @@ int main(int argc, char** argv)
|
|
IGNORE_RESULT(chown(dest_filename, dd->dd_uid, dd->dd_gid));
|
|
|
|
strcpy(dest_base, FILENAME_OPEN_FDS);
|
|
- if (dump_fd_info(dest_filename, source_filename, source_base_ofs))
|
|
+ strcpy(source_filename + source_base_ofs, "fd");
|
|
+ if (dump_fd_info(dest_filename, source_filename) == 0)
|
|
IGNORE_RESULT(chown(dest_filename, dd->dd_uid, dd->dd_gid));
|
|
|
|
free(dest_filename);
|
|
--
|
|
2.1.0
|
|
|