Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > a2cd3dae78b2c9731ea9c4f42484efff > files > 10

nss-3.21.3-2.el5_11.src.rpm

diff -up ./mozilla/security/coreconf/Linux.mk.relro ./mozilla/security/coreconf/Linux.mk
--- ./mozilla/security/coreconf/Linux.mk.relro	2013-04-09 11:38:44.623149995 -0700
+++ ./mozilla/security/coreconf/Linux.mk	2013-04-09 11:40:00.414376841 -0700
@@ -174,6 +174,12 @@ endif
 endif
 endif
 
+# harden DSOs/executables a bit against exploits
+ifeq (2.6,$(firstword $(sort 2.6 $(OS_RELEASE))))
+DSO_LDOPTS+=-Wl,-z,relro
+LDFLAGS	+= -Wl,-z,relro
+endif
+
 USE_SYSTEM_ZLIB = 1
 ZLIB_LIBS = -lz