Skip to contentSkip to conversation

postgresql: 9.4.5 -> 9.4.8

PATCH New Mingli Yu 1 participant 1 message Aug 5, 2016

lore
Share & tools
lore

Mingli Yu

author
#0 lore raw

PATCH 1/1 postgresql: 9.4.5 -> 9.4.8

* Upgrade postgresql from 9.4.5 to 9.4.8
* Update LIC_FILES_CHKSUM as COPYRIGHT file
updates
* Remove two backport CVE patches

---
 .../files/postgresql-CVE-2016-0766.patch           |  35 ----
 .../files/postgresql-CVE-2016-0773.patch           | 222 ---------------------
 meta-oe/recipes-support/postgresql/postgresql.inc  |   2 -
 .../recipes-support/postgresql/postgresql_9.4.5.bb |  14 --
 .../recipes-support/postgresql/postgresql_9.4.8.bb |  14 ++
 5 files changed, 14 insertions(+), 273 deletions(-)
 delete mode 100644 meta-oe/recipes-support/postgresql/files/postgresql-CVE-2016-0766.patch
 delete mode 100644 meta-oe/recipes-support/postgresql/files/postgresql-CVE-2016-0773.patch
 delete mode 100644 meta-oe/recipes-support/postgresql/postgresql_9.4.5.bb
 create mode 100644 meta-oe/recipes-support/postgresql/postgresql_9.4.8.bb
meta-oe/recipes-support/postgresql/files/postgresql-CVE-2016-0766.patch deleted +0 -35
deleted file mode 100644
index df89eb0..0000000
@@ -1,35 +0,0 @@
-From f4aa3a18a20d51575562520754aa376b3b08b2d0 Mon Sep 17 00:00:00 2001
-From: Noah Misch <[email protected]>
-Date: Fri, 5 Feb 2016 20:22:51 -0500
-Subject: [PATCH] Force certain "pljava" custom GUCs to be PGC_SUSET.
-
-Future PL/Java versions will close CVE-2016-0766 by making these GUCs
-PGC_SUSET.  This PostgreSQL change independently mitigates that PL/Java
-vulnerability, helping sites that update PostgreSQL more frequently than
-PL/Java.  Back-patch to 9.1 (all supported versions).
-
-Upstream-Status: Backport
-
-Signed-off-by: Noah Misch <[email protected]>
-Index: postgresql-9.4.4/src/backend/utils/misc/guc.c
-===================================================================
---- postgresql-9.4.4.orig/src/backend/utils/misc/guc.c	2015-06-10 03:29:38.000000000 +0800
-+++ postgresql-9.4.4/src/backend/utils/misc/guc.c	2016-03-04 15:58:26.459266951 +0800
-@@ -7072,6 +7072,17 @@
- 		!process_shared_preload_libraries_in_progress)
- 		elog(FATAL, "cannot create PGC_POSTMASTER variables after startup");
- 
-+	/*
-+	 * Before pljava commit 398f3b876ed402bdaec8bc804f29e2be95c75139
-+	 * (2015-12-15), two of that module's PGC_USERSET variables facilitated
-+	 * trivial escalation to superuser privileges.  Restrict the variables to
-+	 * protect sites that have yet to upgrade pljava.
-+	 */
-+	if (context == PGC_USERSET &&
-+		(strcmp(name, "pljava.classpath") == 0 ||
-+		 strcmp(name, "pljava.vmoptions") == 0))
-+		context = PGC_SUSET;
-+
- 	gen = (struct config_generic *) guc_malloc(ERROR, sz);
- 	memset(gen, 0, sz);
- 
meta-oe/recipes-support/postgresql/files/postgresql-CVE-2016-0773.patch deleted +0 -222

222 lines not on this page · raw message

meta-oe/recipes-support/postgresql/postgresql.inc +0 -2
index 32ffe19..e473f58 100644
@@ -31,8 +31,6 @@ SRC_URI = "http://ftp.postgresql.org/pub/source/v${PV}/${BP}.tar.bz2 \
     file://postgresql-setup \
     file://postgresql.service \
     file://0001-Use-pkg-config-for-libxml2-detection.patch \
-    file://postgresql-CVE-2016-0766.patch \
-    file://postgresql-CVE-2016-0773.patch \
 "
 
 LEAD_SONAME = "libpq.so"
meta-oe/recipes-support/postgresql/postgresql_9.4.5.bb deleted +0 -14
deleted file mode 100644
index 54b660e..0000000
@@ -1,14 +0,0 @@
-require postgresql.inc
-
-LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=7d847a9b446ddfe187acfac664189672"
-
-PR = "${INC_PR}.0"
-
-SRC_URI += "\
-    file://remove.autoconf.version.check.patch \
-    file://not-check-libperl.patch \
-"
-
-SRC_URI[md5sum] = "8b2e3472a8dc786649b4d02d02e039a0"
-SRC_URI[sha256sum] = "b87c50c66b6ea42a9712b5f6284794fabad0616e6ae420cf0f10523be6d94a39"
-
meta-oe/recipes-support/postgresql/postgresql_9.4.8.bb new file +14 -0
new file mode 100644
index 0000000..7dba92c
@@ -0,0 +1,14 @@
+require postgresql.inc
+
+LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=3a9c1120056a102a8c8c4013cd828dce"
+
+PR = "${INC_PR}.0"
+
+SRC_URI += "\
+    file://remove.autoconf.version.check.patch \
+    file://not-check-libperl.patch \
+"
+
+SRC_URI[md5sum] = "a1a2e8014b2b4c49fc58fe2e2fe83681"
+SRC_URI[sha256sum] = "4a10640e180e0d9adb587bc25a82dcce6bf507b033637e7fb9d4eeffa33a6b4c"
+
Signature · 1 line
2.8.1