doczkal / rpms / abrt

Forked from rpms/abrt 4 years ago
Clone

Blame SOURCES/0153-abrt-hook-ccpp-reset-ownership-after-saving-core-bac.patch

a60cd7
From 277ffd77b9ce6eaee007d72139b81804cb12f327 Mon Sep 17 00:00:00 2001
a60cd7
From: Richard Marko <rmarko@fedoraproject.org>
a60cd7
Date: Fri, 17 Jul 2015 14:19:34 +0200
a60cd7
Subject: [PATCH] abrt-hook-ccpp: reset ownership after saving core backtrace
a60cd7
a60cd7
Signed-off-by: Richard Marko <rmarko@fedoraproject.org>
a60cd7
---
a60cd7
 src/hooks/abrt-hook-ccpp.c | 6 +++---
a60cd7
 1 file changed, 3 insertions(+), 3 deletions(-)
a60cd7
a60cd7
diff --git a/src/hooks/abrt-hook-ccpp.c b/src/hooks/abrt-hook-ccpp.c
a60cd7
index 6759fc0..5b277af 100644
a60cd7
--- a/src/hooks/abrt-hook-ccpp.c
a60cd7
+++ b/src/hooks/abrt-hook-ccpp.c
a60cd7
@@ -1027,13 +1027,13 @@ int main(int argc, char** argv)
a60cd7
         }
a60cd7
 #endif
a60cd7
 
a60cd7
-        /* And finally set the right uid and gid */
a60cd7
-        dd_reset_ownership(dd);
a60cd7
-
a60cd7
         /* Perform crash-time unwind of the guilty thread. */
a60cd7
         if (tid > 0 && setting_CreateCoreBacktrace)
a60cd7
             create_core_backtrace(tid, executable, signal_no, dd);
a60cd7
 
a60cd7
+        /* And finally set the right uid and gid */
a60cd7
+        dd_reset_ownership(dd);
a60cd7
+
a60cd7
         /* We close dumpdir before we start catering for crash storm case.
a60cd7
          * Otherwise, delete_dump_dir's from other concurrent
a60cd7
          * CCpp's won't be able to delete our dump (their delete_dump_dir
a60cd7
-- 
a60cd7
2.4.3
a60cd7