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
|
2015-01-14 19:32:16 +01:00
|
|
|
@@ -8302,16 +8302,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)
|
2014-12-02 23:01:52 +01:00
|
|
|
+AC_SUBST_LIST(NSSHELPER_CFLAGS)
|
|
|
|
+AC_SUBST_LIST(NSSHELPER_LIBS)
|
2011-06-01 08:05:09 +02:00
|
|
|
+
|
|
|
|
+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
|
2014-12-02 23:01:52 +01:00
|
|
|
diff --git a/security/manager/ssl/src/moz.build b/security/manager/ssl/src/moz.build
|
|
|
|
--- a/security/manager/ssl/src/moz.build
|
|
|
|
+++ b/security/manager/ssl/src/moz.build
|
2015-01-14 19:32:16 +01:00
|
|
|
@@ -95,16 +95,19 @@ FAIL_ON_WARNINGS = True
|
2014-12-02 23:01:52 +01:00
|
|
|
|
|
|
|
FINAL_LIBRARY = 'xul'
|
|
|
|
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'../../../certverifier',
|
|
|
|
'../../../pkix/include',
|
|
|
|
]
|
|
|
|
|
|
|
|
+CXXFLAGS += sorted(CONFIG['NSSHELPER_CFLAGS'])
|
|
|
|
+OS_LIBS += sorted(CONFIG['NSSHELPER_LIBS'])
|
2013-12-11 09:31:54 +01:00
|
|
|
+
|
2014-12-02 23:01:52 +01:00
|
|
|
if CONFIG['NSS_DISABLE_DBM']:
|
|
|
|
DEFINES['NSS_DISABLE_DBM'] = '1'
|
|
|
|
|
|
|
|
DEFINES['SSL_DISABLE_DEPRECATED_CIPHER_SUITE_NAMES'] = 'True'
|
|
|
|
DEFINES['NSS_ENABLE_ECC'] = 'True'
|
|
|
|
for var in ('DLL_PREFIX', 'DLL_SUFFIX'):
|
|
|
|
DEFINES[var] = '"%s"' % CONFIG[var]
|
|
|
|
|
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
|
2015-01-14 19:32:16 +01:00
|
|
|
@@ -1,14 +1,21 @@
|
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
|
|
*
|
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
|
|
|
|
|
|
|
+#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"
|
2015-01-14 19:32:16 +01:00
|
|
|
@@ -945,17 +952,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"));
|
|
|
|
}
|
2015-01-14 19:32:16 +01:00
|
|
|
diff --git a/toolkit/library/moz.build b/toolkit/library/moz.build
|
|
|
|
--- a/toolkit/library/moz.build
|
|
|
|
+++ b/toolkit/library/moz.build
|
|
|
|
@@ -213,16 +213,18 @@ if CONFIG['MOZ_B2G_CAMERA']:
|
|
|
|
'stagefright_omx',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['OS_ARCH'] == 'Linux' and CONFIG['OS_TARGET'] != 'Android':
|
|
|
|
OS_LIBS += [
|
|
|
|
'rt',
|
|
|
|
]
|
2011-06-01 08:05:09 +02:00
|
|
|
|
2014-12-02 23:01:52 +01:00
|
|
|
+OS_LIBS += sorted(CONFIG['NSSHELPER_LIBS'])
|
|
|
|
+
|
2015-01-14 19:32:16 +01:00
|
|
|
OS_LIBS += CONFIG['MOZ_CAIRO_OSLIBS']
|
|
|
|
OS_LIBS += CONFIG['MOZ_WEBRTC_X11_LIBS']
|
|
|
|
|
|
|
|
if CONFIG['MOZ_NATIVE_JPEG']:
|
|
|
|
OS_LIBS += CONFIG['MOZ_JPEG_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
|
|
|
|
2015-01-14 19:32:16 +01:00
|
|
|
if CONFIG['MOZ_NATIVE_PNG']:
|
|
|
|
OS_LIBS += CONFIG['MOZ_PNG_LIBS']
|