Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37561027
en ru br
ALT Linux repos
S:3.1.21-alt2

Group :: Communications
RPM: smstools

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: hardening.patch
Download


Description: add some hardening flags
Author: Moritz Muehlenhoff <jmm@debian.org>
Index: smstools3/src/Makefile
===================================================================
--- smstools3.orig/src/Makefile	2017-05-10 13:17:42.885619831 +0200
+++ smstools3/src/Makefile	2017-05-10 13:19:10.286770111 +0200
@@ -1,7 +1,7 @@
 # In case of windows, use os_cygwin=yes setting in the configuration file (smsd.conf).
 
 # Select your setup size:
-CFLAGS = -D NUMBER_OF_MODEMS=64
+CFLAGS = -D NUMBER_OF_MODEMS=64 `dpkg-buildflags --get CFLAGS` `dpkg-buildflags --get CPPFLAGS`
 
 # Uncomment for Solaris
 # CFLAGS += -D SOLARIS
@@ -49,6 +49,9 @@
 # Use the following only on GNU/Linux and only if you need ps listing like "smsd: MAINPROCESS" and "smsd: GSM1"
 # CFLAGS += -D USE_LINUX_PS_TRICK
 
+LFLAGS = `dpkg-buildflags --get LDFLAGS`
+LFLAGS += -z now -z relro
+
 ifneq (,$(findstring SOLARIS,$(CFLAGS)))
 ifeq (,$(findstring DISABLE_INET_SOCKET,$(CFLAGS)))
 	override LFLAGS += -lsocket -lnsl
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin