Added binary hardening options 88/166888/2 accepted/tizen_5.0_base accepted/tizen_5.5_base accepted/tizen_5.5_base_mobile_hotfix accepted/tizen_5.5_base_wearable_hotfix accepted/tizen_6.0_base accepted/tizen_6.0_base_tool accepted/tizen_6.0_base_tool_hotfix tizen_5.0_base tizen_5.5_base tizen_5.5_base_mobile_hotfix tizen_5.5_base_wearable_hotfix tizen_5.5_tv tizen_6.0_base tizen_6.0_base_hotfix accepted/tizen/5.0/base/20181101.091459 accepted/tizen/5.5/base/20191030.083837 accepted/tizen/5.5/base/mobile/hotfix/20201023.083920 accepted/tizen/5.5/base/wearable/hotfix/20201023.080309 accepted/tizen/6.0/base/20201029.105851 accepted/tizen/6.0/base/20230713.143057 accepted/tizen/6.0/base/tool/20201029.111610 accepted/tizen/6.0/base/tool/hotfix/20201030.124410 accepted/tizen/6.0/base/tool/hotfix/20201102.085514 accepted/tizen/6.5/base/tool/20211027.120821 accepted/tizen/base/20180126.040802 submit/tizen_5.0_base/20181101.000002 submit/tizen_5.5_base/20191030.000001 submit/tizen_5.5_base_mobile_hotfix/20201023.171502 submit/tizen_5.5_base_wearable_hotfix/20201023.155602 submit/tizen_6.0_base/20201029.184802 submit/tizen_6.0_base_hotfix/20201030.192502 submit/tizen_6.0_base_hotfix/20201102.162702 submit/tizen_6.5_base/20211026.180901 submit/tizen_6.5_base/20211027.183101 submit/tizen_6.5_base/20211027.201101 submit/tizen_base/20180119.094609 tizen_5.5.m2_release tizen_6.0.m2_release tizen_6.5.m2_release
authorTomasz Swierczek <t.swierczek@samsung.com>
Fri, 12 Jan 2018 06:54:46 +0000 (07:54 +0100)
committerTomasz Swierczek <t.swierczek@samsung.com>
Fri, 12 Jan 2018 10:08:39 +0000 (11:08 +0100)
* stack-protector-strong
* FORTIFY_SOURCE
* -zrelro -znow

Change-Id: I260204b87da91e1d26bfe3b63f95c72ac5296703

packaging/smack.spec

index e0ff9d6..79bf66e 100644 (file)
@@ -35,7 +35,9 @@ Library allows applications to work with Smack.
 cp %{SOURCE1001} .
 
 %build
-%reconfigure --with-systemdsystemunitdir=%{_unitdir} CFLAGS=-fPIE LDFLAGS=-pie
+export CFLAGS+=" -fPIE -Wl,-z,relro,-z,now -fstack-protector-strong -O2"
+export LDFLAGS=" -pie"
+%reconfigure --with-systemdsystemunitdir=%{_unitdir}
 
 make %{?_smp_mflags}