[ganglia/el6: 4/5] Backport of security fix http://bugzilla.ganglia.info/cgi-bin/bugzilla/show_bug.cgi?id=333

georgiou georgiou at fedoraproject.org
Sun Jul 15 19:48:58 UTC 2012


commit bfd9cff9ae56cf3771f08ec3ea9cdea12e7c3177
Author: Kostas Georgiou <k.georgiou at atreides.org.uk>
Date:   Sun Jul 15 14:37:08 2012 +0100

    Backport of security fix http://bugzilla.ganglia.info/cgi-bin/bugzilla/show_bug.cgi?id=333

 ganglia.spec               |    7 ++++++-
 graph-remoteexec-fix.patch |   12 ++++++++++++
 2 files changed, 18 insertions(+), 1 deletions(-)
---
diff --git a/ganglia.spec b/ganglia.spec
index d01e5c6..a935c02 100644
--- a/ganglia.spec
+++ b/ganglia.spec
@@ -1,6 +1,6 @@
 Name:               ganglia
 Version:            3.1.7
-Release:            5%{?svnrev:.r%{svnrev}}%{?dist}
+Release:            6%{?svnrev:.r%{svnrev}}%{?dist}
 Summary:            Ganglia Distributed Monitoring System
 
 Group:              Applications/Internet
@@ -11,6 +11,7 @@ Source0:            http://dl.sourceforge.net/sourceforge/%{name}/%{name}-%{vers
 Patch0:             diskusage-pcre.patch
 Patch1:             setuserid-fix.patch
 Patch2:             diskmetrics.patch
+Patch3:             graph-remoteexec-fix.patch
 Buildroot:          %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:      rrdtool-devel, apr-devel >= 1
@@ -94,6 +95,7 @@ programmers can use to build scalable cluster or grid applications
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 ## Hey, those shouldn't be executable...
 chmod -x lib/*.{h,x}
 
@@ -279,6 +281,9 @@ fi
 %{_datadir}/%{name}
 
 %changelog
+* Sun Jul 15 2012 Kostas Georgiou <georgiou at fedoraproject.org> - 3.1.7-6
+- Backport of security patch for gangliabz#333
+
 * Fri Jan 13 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 3.1.7-5
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
 
diff --git a/graph-remoteexec-fix.patch b/graph-remoteexec-fix.patch
new file mode 100644
index 0000000..7c8ffe0
--- /dev/null
+++ b/graph-remoteexec-fix.patch
@@ -0,0 +1,12 @@
+diff -u a/web/graph.php-orig b/web/graph.php
+--- a/web/graph.php-orig	2012-07-15 13:56:07.004566423 +0100
++++ b/web/graph.php	2012-07-15 13:56:17.082752514 +0100
+@@ -122,7 +122,7 @@
+ 
+ $graph_file = "$graphdir/$graph.php";
+ 
+-if ( is_readable($graph_file) ) {
++if ( is_readable($graph_file) and realpath($graphdir) === dirname(realpath($graph_file)) ) {
+     include_once($graph_file);
+ 
+     $graph_function = "graph_${graph}";


More information about the scm-commits mailing list