Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37745070
en ru br
Репозитории ALT

Группа :: Коммуникации
Пакет: smstools

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: hardening.patch
Скачать


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
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin