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

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