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