Merge pull request #95 from zabbix/master

PIE (ASLR) mitigation + Full RELRO mitigation
This commit is contained in:
Alexey Pustovalov
2017-04-28 14:50:49 +03:00
committed by GitHub
10 changed files with 10 additions and 0 deletions

View File

@ -68,6 +68,7 @@ RUN apk add ${APK_FLAGS_DEV} --virtual build-dependencies \
zabbix_revision=`svn info ${ZBX_SOURCES} |grep "Last Changed Rev"|awk '{print $4;}'` && \
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" include/version.h && \
./bootstrap.sh 1>/dev/null && \
export CFLAGS="-fPIC -pie -Wl,-z,relro -Wl,-z,now" && \
./configure \
--prefix=/usr \
--silent \