Blame 0183-abrtd-switch-owner-of-the-dump-location-to-root.patch

69165ba
From 57bc5697db222c96cb3adbee635f072abeeff6ad Mon Sep 17 00:00:00 2001
69165ba
From: Jakub Filak <jfilak@redhat.com>
69165ba
Date: Wed, 30 Sep 2015 14:14:31 +0200
69165ba
Subject: [PATCH] abrtd: switch owner of the dump location to 'root'
69165ba
69165ba
Additional hardening suggested by Florian Weimer <fweimer@redhat.com>
69165ba
69165ba
Related to CVE-2015-5287
69165ba
Related: #1262252
69165ba
69165ba
Signed-off-by: Jakub Filak <jfilak@redhat.com>
69165ba
---
69165ba
 src/daemon/abrtd.c | 2 +-
69165ba
 1 file changed, 1 insertion(+), 1 deletion(-)
69165ba
69165ba
diff --git a/src/daemon/abrtd.c b/src/daemon/abrtd.c
69165ba
index b1252d2..b79e940 100644
69165ba
--- a/src/daemon/abrtd.c
69165ba
+++ b/src/daemon/abrtd.c
69165ba
@@ -164,7 +164,7 @@ static void sanitize_dump_dir_rights(void)
69165ba
      * us with thousands of bogus or malicious dumps */
69165ba
     /* 07000 bits are setuid, setgit, and sticky, and they must be unset */
69165ba
     /* 00777 bits are usual "rwxrwxrwx" access rights */
69165ba
-    ensure_writable_dir(g_settings_dump_location, 0755, "abrt");
69165ba
+    ensure_writable_dir_group(g_settings_dump_location, 0751, "root", "abrt");
69165ba
     /* temp dir */
69165ba
     ensure_writable_dir(VAR_RUN"/abrt", 0755, "root");
69165ba
 }
69165ba
-- 
69165ba
1.8.3.1
69165ba