[nspr/f16] Resolves: Bug 805672 - Library needs partial RELRO support added

Elio Maldonado emaldonado at fedoraproject.org
Wed Mar 28 18:51:06 UTC 2012


commit 3b230d6eb4ec6fa9db9bf7f58a44a054082cf41d
Author: Elio Maldonado <emaldona at redhat.com>
Date:   Wed Mar 28 11:50:31 2012 -0700

    Resolves: Bug 805672 - Library needs partial RELRO support added

 nspr.spec |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/nspr.spec b/nspr.spec
index 6f8302b..89f191c 100644
--- a/nspr.spec
+++ b/nspr.spec
@@ -1,7 +1,7 @@
 Summary:        Netscape Portable Runtime
 Name:           nspr
 Version:        4.9
-Release:        1%{?dist}
+Release:        2%{?dist}
 License:        MPLv1.1 or GPLv2+ or LGPLv2+
 URL:            http://www.mozilla.org/projects/nspr/
 Group:          System Environment/Libraries
@@ -49,6 +49,10 @@ cp %{SOURCE2} ./mozilla/nsprpub/config/
 
 %build
 
+# partial RELRO support as a security enhancement
+LDFLAGS+=-Wl,-z,relro
+export LDFLAGS
+
 ./mozilla/nsprpub/configure \
                  --prefix=%{_prefix} \
                  --libdir=%{_libdir} \
@@ -144,6 +148,9 @@ done
 %{_bindir}/nspr-config
 
 %changelog
+* Wed Mar 28 2012 Elio Maldonado <emaldona at redhat.com> - 4.9-2
+- Resolves: Bug 805672 - Library needs partial RELRO support added
+
 * Sat Mar 10 2012 Elio Maldonado <emaldona at redhat.com> - 4.9-1
 - Update to NSPR_4_9_RTM
 - Selective merge from f17, don't install everything in /usr


More information about the scm-commits mailing list