2011-06-01 08:05:09 +02:00
|
|
|
From: Hans Petter Jansson <hpj@copyleft.no>
|
|
|
|
Wolfgang Rosenauer <wr@rosenauer.org>
|
|
|
|
Subject: use libnsssharedhelper if available at compile time
|
2011-12-18 14:13:18 +01:00
|
|
|
(can be disabled by exporting MOZ_XRE_NO_NSSHELPER=1)
|
2011-06-01 08:05:09 +02:00
|
|
|
References:
|
|
|
|
|
|
|
|
diff --git a/configure.in b/configure.in
|
|
|
|
--- a/configure.in
|
|
|
|
+++ b/configure.in
|
2014-07-21 11:32:46 +02:00
|
|
|
@@ -8231,16 +8231,31 @@ if test "$MOZ_ENABLE_SKIA"; then
|
2014-03-18 20:44:32 +01:00
|
|
|
MOZ_ENABLE_SKIA_GPU=1
|
|
|
|
AC_DEFINE(USE_SKIA_GPU)
|
|
|
|
AC_SUBST(MOZ_ENABLE_SKIA_GPU)
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
AC_SUBST(MOZ_ENABLE_SKIA)
|
2011-06-01 08:05:09 +02:00
|
|
|
|
|
|
|
dnl ========================================================
|
|
|
|
+dnl Check for nss-shared-helper
|
|
|
|
+dnl ========================================================
|
|
|
|
+
|
|
|
|
+ PKG_CHECK_MODULES(NSSHELPER, nss-shared-helper,
|
|
|
|
+ [MOZ_ENABLE_NSSHELPER=1],
|
|
|
|
+ [MOZ_ENABLE_NSSHELPER=])
|
|
|
|
+
|
|
|
|
+if test "$MOZ_ENABLE_NSSHELPER"; then
|
|
|
|
+ AC_DEFINE(MOZ_ENABLE_NSSHELPER)
|
|
|
|
+fi
|
|
|
|
+AC_SUBST(MOZ_ENABLE_NSSHELPER)
|
|
|
|
+AC_SUBST(NSSHELPER_CFLAGS)
|
|
|
|
+AC_SUBST(NSSHELPER_LIBS)
|
|
|
|
+
|
|
|
|
+dnl ========================================================
|
2014-03-18 20:44:32 +01:00
|
|
|
dnl disable xul
|
2013-06-24 09:57:33 +02:00
|
|
|
dnl ========================================================
|
2014-03-18 20:44:32 +01:00
|
|
|
MOZ_ARG_DISABLE_BOOL(xul,
|
|
|
|
[ --disable-xul Disable XUL],
|
|
|
|
MOZ_XUL= )
|
|
|
|
if test "$MOZ_XUL"; then
|
|
|
|
AC_DEFINE(MOZ_XUL)
|
|
|
|
else
|
2011-06-01 08:05:09 +02:00
|
|
|
diff --git a/security/manager/ssl/src/Makefile.in b/security/manager/ssl/src/Makefile.in
|
2014-03-18 20:44:32 +01:00
|
|
|
new file mode 100644
|
|
|
|
--- /dev/null
|
2011-06-01 08:05:09 +02:00
|
|
|
+++ b/security/manager/ssl/src/Makefile.in
|
2014-03-18 20:44:32 +01:00
|
|
|
@@ -0,0 +1,8 @@
|
|
|
|
+#! gmake
|
|
|
|
+#
|
|
|
|
+# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
+# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
2013-12-11 09:31:54 +01:00
|
|
|
+
|
2013-01-07 21:49:28 +01:00
|
|
|
+LOCAL_INCLUDES += $(NSSHELPER_CFLAGS)
|
2011-09-26 08:53:33 +02:00
|
|
|
+EXTRA_DSO_LDOPTS += $(NSSHELPER_LIBS)
|
2011-06-01 08:05:09 +02:00
|
|
|
diff --git a/security/manager/ssl/src/nsNSSComponent.cpp b/security/manager/ssl/src/nsNSSComponent.cpp
|
|
|
|
--- a/security/manager/ssl/src/nsNSSComponent.cpp
|
|
|
|
+++ b/security/manager/ssl/src/nsNSSComponent.cpp
|
2013-01-07 21:49:28 +01:00
|
|
|
@@ -3,16 +3,23 @@
|
2012-08-28 20:40:50 +02:00
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2011-06-01 08:05:09 +02:00
|
|
|
|
2013-01-07 21:49:28 +01:00
|
|
|
#ifdef MOZ_LOGGING
|
|
|
|
#define FORCE_PR_LOG 1
|
|
|
|
#endif
|
|
|
|
|
2011-06-01 08:05:09 +02:00
|
|
|
+#ifdef MOZ_ENABLE_NSSHELPER
|
|
|
|
+#pragma GCC visibility push(default)
|
|
|
|
+#include <nss-shared-helper.h>
|
|
|
|
+#pragma GCC visibility pop
|
|
|
|
+#include "prenv.h"
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
#include "nsNSSComponent.h"
|
2013-08-07 14:18:59 +02:00
|
|
|
|
2014-04-27 18:09:32 +02:00
|
|
|
#include "ExtendedValidation.h"
|
|
|
|
#include "NSSCertDBTrustDomain.h"
|
2014-02-03 16:34:42 +01:00
|
|
|
#include "mozilla/Telemetry.h"
|
2011-06-01 08:05:09 +02:00
|
|
|
#include "nsCertVerificationThread.h"
|
2013-09-16 09:57:05 +02:00
|
|
|
#include "nsAppDirectoryServiceDefs.h"
|
|
|
|
#include "nsComponentManagerUtils.h"
|
2014-07-21 11:32:46 +02:00
|
|
|
@@ -1141,17 +1148,31 @@ nsNSSComponent::InitializeNSS()
|
2014-04-27 18:09:32 +02:00
|
|
|
if (NS_FAILED(rv)) {
|
|
|
|
nsPSMInitPanic::SetPanic();
|
|
|
|
return NS_ERROR_NOT_AVAILABLE;
|
|
|
|
}
|
2011-06-01 08:05:09 +02:00
|
|
|
|
2014-04-27 18:09:32 +02:00
|
|
|
SECStatus init_rv = SECFailure;
|
|
|
|
if (!profileStr.IsEmpty()) {
|
|
|
|
// First try to initialize the NSS DB in read/write mode.
|
|
|
|
- SECStatus init_rv = ::mozilla::psm::InitializeNSS(profileStr.get(), false);
|
2011-06-01 08:05:09 +02:00
|
|
|
+#ifdef MOZ_ENABLE_NSSHELPER
|
2011-12-18 14:13:18 +01:00
|
|
|
+ if (PR_GetEnv("MOZ_XRE_NO_NSSHELPER")) {
|
2014-04-27 18:09:32 +02:00
|
|
|
+ init_rv = ::mozilla::psm::InitializeNSS(profileStr.get(), false);
|
2011-06-01 08:05:09 +02:00
|
|
|
+ } else {
|
2014-04-27 18:09:32 +02:00
|
|
|
+ uint32_t flags = NSS_INIT_NOROOTINIT | NSS_INIT_OPTIMIZESPACE;
|
|
|
|
+ init_rv = ::nsshelp_open_db ("Firefox", profileStr.get(), flags);
|
2011-06-01 08:05:09 +02:00
|
|
|
+
|
|
|
|
+ if (init_rv != SECSuccess) {
|
|
|
|
+ PR_LOG(gPIPNSSLog, PR_LOG_DEBUG, ("can not init NSS using nsshelp_open_db in %s\n", profileStr.get()));
|
2014-04-27 18:09:32 +02:00
|
|
|
+ init_rv = ::mozilla::psm::InitializeNSS(profileStr.get(), false);
|
2011-06-01 08:05:09 +02:00
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+#else
|
2014-04-27 18:09:32 +02:00
|
|
|
+ init_rv = ::mozilla::psm::InitializeNSS(profileStr.get(), false);
|
2011-06-01 08:05:09 +02:00
|
|
|
+#endif
|
2014-04-27 18:09:32 +02:00
|
|
|
// If that fails, attempt read-only mode.
|
2011-06-01 08:05:09 +02:00
|
|
|
if (init_rv != SECSuccess) {
|
2014-04-27 18:09:32 +02:00
|
|
|
PR_LOG(gPIPNSSLog, PR_LOG_DEBUG, ("could not init NSS r/w in %s\n", profileStr.get()));
|
|
|
|
init_rv = ::mozilla::psm::InitializeNSS(profileStr.get(), true);
|
|
|
|
}
|
|
|
|
if (init_rv != SECSuccess) {
|
|
|
|
PR_LOG(gPIPNSSLog, PR_LOG_DEBUG, ("could not init in r/o either\n"));
|
|
|
|
}
|
2014-07-21 11:32:46 +02:00
|
|
|
diff --git a/toolkit/library/libxul.mk b/toolkit/library/libxul.mk
|
|
|
|
--- a/toolkit/library/libxul.mk
|
|
|
|
+++ b/toolkit/library/libxul.mk
|
|
|
|
@@ -146,17 +146,17 @@ OS_LIBS += $(call EXPAND_LIBNAME,mfuuid
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOZ_DIRECTSHOW
|
|
|
|
OS_LIBS += $(call EXPAND_LIBNAME,dmoguids wmcodecdspuuid strmiids msdmo)
|
2011-06-01 08:05:09 +02:00
|
|
|
endif
|
|
|
|
|
2013-09-16 09:57:05 +02:00
|
|
|
EXTRA_DSO_LDOPTS += $(LIBS_DIR)
|
2011-07-23 16:46:28 +02:00
|
|
|
|
2011-06-01 08:05:09 +02:00
|
|
|
-EXTRA_DSO_LDOPTS += $(NSPR_LIBS) $(MOZALLOC_LIB)
|
|
|
|
+EXTRA_DSO_LDOPTS += $(NSPR_LIBS) $(MOZALLOC_LIB) $(NSSHELPER_LIBS)
|
|
|
|
|
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),cocoa)
|
|
|
|
OS_LIBS += \
|
- update to Firefox 30.0 (bnc#881874)
* MFSA 2014-48/CVE-2014-1533/CVE-2014-1534
(bmo#921622, bmo#967354, bmo#969517, bmo#969549, bmo#973874,
bmo#978652, bmo#978811, bmo#988719, bmo#990868, bmo#991981,
bmo#992274, bmo#994907, bmo#995679, bmo#995816, bmo#995817,
bmo#996536, bmo#996715, bmo#999651, bmo#1000598,
bmo#1000960, bmo#1002340, bmo#1005578, bmo#1007223,
bmo#1009952, bmo#1011007)
Miscellaneous memory safety hazards (rv:30.0)
* MFSA 2014-49/CVE-2014-1536/CVE-2014-1537/CVE-2014-1538
(bmo#989994, bmo#999274, bmo#1005584)
Use-after-free and out of bounds issues found using Address
Sanitizer
* MFSA 2014-50/CVE-2014-1539 (bmo#995603)
Clickjacking through cursor invisability after Flash interaction
* MFSA 2014-51/CVE-2014-1540 (bmo#978862)
Use-after-free in Event Listener Manager
* MFSA 2014-52/CVE-2014-1541 (bmo#1000185)
Use-after-free with SMIL Animation Controller
* MFSA 2014-53/CVE-2014-1542 (bmo#991533)
Buffer overflow in Web Audio Speex resampler
* MFSA 2014-54/CVE-2014-1543 (bmo#1011859)
Buffer overflow in Gamepad API
- rebased patches
- removed obsolete patches
* firefox-browser-css.patch
* mozilla-aarch64-bmo-962488.patch
* mozilla-aarch64-bmo-963023.patch
* mozilla-aarch64-bmo-963024.patch
* mozilla-aarch64-bmo-963027.patch
OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/MozillaFirefox?expand=0&rev=384
2014-06-11 10:41:30 +02:00
|
|
|
$(TK_LIBS) \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
2014-07-21 11:32:46 +02:00
|
|
|
ifeq (OpenBSD,$(OS_ARCH))
|