[PATCH 31/35] abrt-python: check if gid equals current users gid

Richard Marko rmarko at redhat.com
Mon May 13 11:05:40 UTC 2013


From: Richard Marko <rmarko at fedoraproject.org>

Required for old dump directory style where ownership
is stored in gid instead of uid.

Signed-off-by: Richard Marko <rmarko at fedoraproject.org>
Signed-off-by: Richard Marko <rmarko at redhat.com>
---
 src/python-problem/problem/proxies.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/python-problem/problem/proxies.py b/src/python-problem/problem/proxies.py
index c547161..1bd89a4 100644
--- a/src/python-problem/problem/proxies.py
+++ b/src/python-problem/problem/proxies.py
@@ -193,7 +193,10 @@ class FsProxy(object):
                 continue
 
             uid = os.getuid()
-            if not _all and os.stat(dump_dir).st_uid != uid:
+            gid = os.getuid()
+            dir_stat = os.stat(dump_dir)
+            if not _all and (dir_stat.st_uid != uid and
+                             dir_stat.st_gid != gid):
                 continue
 
             ddir = report.dd_opendir(dump_dir)
-- 
1.8.1.4



More information about the Crash-catcher mailing list