summaryrefslogtreecommitdiffstats
path: root/src/Hooks/abrt-hook-python.cpp
diff options
context:
space:
mode:
authorKarel Klic <kklic@redhat.com>2010-01-12 14:26:08 +0100
committerKarel Klic <kklic@redhat.com>2010-01-12 14:26:08 +0100
commit71fb2d7e690640b391b76b5432f07b4a81351c8b (patch)
tree1fb4898252178190b54e7367721df67b0a04a140 /src/Hooks/abrt-hook-python.cpp
parentd037916adc56d384717ebd6b7a5963543febc170 (diff)
downloadabrt-71fb2d7e690640b391b76b5432f07b4a81351c8b.tar.gz
abrt-71fb2d7e690640b391b76b5432f07b4a81351c8b.tar.xz
abrt-71fb2d7e690640b391b76b5432f07b4a81351c8b.zip
Fixing /var/cache/abrt/ permissions by allowing users to read, but not to change their crash data. Adds abrt user, changes abrt-hook-python to use suid instead of sgid bit (uid=abrt), sets /var/cache/abrt and every dump subdirectory to be owned by abrt user. Read access for users and their own crashes is provided by group (/var/cache/abrt/ccpp-xxxx-xx has user's group).
Diffstat (limited to 'src/Hooks/abrt-hook-python.cpp')
-rw-r--r--src/Hooks/abrt-hook-python.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Hooks/abrt-hook-python.cpp b/src/Hooks/abrt-hook-python.cpp
index d7fca67d..b921fba2 100644
--- a/src/Hooks/abrt-hook-python.cpp
+++ b/src/Hooks/abrt-hook-python.cpp
@@ -111,7 +111,7 @@ int main(int argc, char** argv)
CDebugDump dd;
try {
- dd.Create(path, geteuid());
+ dd.Create(path, getuid());
} catch (CABRTException &e) {
error_msg_and_die("Error while creating debug dump: %s", e.what());
}