Blame SOURCES/0091-ccpp-do-not-read-data-from-root-directories.patch

06486d
From 4f2c1ddd3e3b81d2d5146b883115371f1cada9f9 Mon Sep 17 00:00:00 2001
06486d
From: Jakub Filak <jfilak@redhat.com>
06486d
Date: Wed, 15 Apr 2015 12:14:52 +0200
06486d
Subject: [ABRT PATCH] ccpp: do not read data from root directories
06486d
06486d
Users are allowed to modify /proc/[pid]/root to any directory by running
06486d
their own MOUNT namespace.
06486d
06486d
Related: #1211835
06486d
06486d
Signed-off-by: Jakub Filak <jfilak@redhat.com>
06486d
---
06486d
 src/hooks/abrt-hook-ccpp.c | 2 +-
06486d
 1 file changed, 1 insertion(+), 1 deletion(-)
06486d
06486d
diff --git a/src/hooks/abrt-hook-ccpp.c b/src/hooks/abrt-hook-ccpp.c
06486d
index 5694f84..0606519 100644
06486d
--- a/src/hooks/abrt-hook-ccpp.c
06486d
+++ b/src/hooks/abrt-hook-ccpp.c
06486d
@@ -678,7 +678,7 @@ int main(int argc, char** argv)
06486d
     {
06486d
         char *rootdir = get_rootdir(pid);
06486d
 
06486d
-        dd_create_basic_files(dd, fsuid, (rootdir && strcmp(rootdir, "/") != 0) ? rootdir : NULL);
06486d
+        dd_create_basic_files(dd, fsuid, NULL);
06486d
 
06486d
         char source_filename[sizeof("/proc/%lu/somewhat_long_name") + sizeof(long)*3];
06486d
         int source_base_ofs = sprintf(source_filename, "/proc/%lu/smaps", (long)pid);
06486d
-- 
06486d
1.8.3.1
06486d