From 122edb8adc84fb4d00235523acf93dadef6363e9 Mon Sep 17 00:00:00 2001 From: Seonah Moon Date: Thu, 22 Mar 2018 14:32:53 +0900 Subject: [PATCH] Apply ASLR flags Change-Id: I675ce6dbc5f34403b8acb058f5db60bdff22d059 --- packaging/tcpdump.spec | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packaging/tcpdump.spec b/packaging/tcpdump.spec index 90dcb9b..f101de0 100644 --- a/packaging/tcpdump.spec +++ b/packaging/tcpdump.spec @@ -1,6 +1,6 @@ Name: tcpdump Version: 4.3.0 -Release: 0 +Release: 1 License: BSD-3-Clause Summary: A Packet Sniffer Url: http://www.tcpdump.org/ @@ -20,7 +20,9 @@ ethernet. It can be used to debug specific network problems. cp %{SOURCE1001} . %build -export CFLAGS="%{optflags} -Wall -DGUESS_TSO -fstack-protector -fno-strict-aliasing" +export CFLAGS="%{optflags} -Wall -DGUESS_TSO -fstack-protector -fno-strict-aliasing -fPIE" +export LDFLAGS="-pie" + %configure \ --enable-ipv6 make -- 2.7.4