packaging: add noexecstack option in LDFLAGS for Data Execution Prevention 27/74327/1 accepted/tizen_3.0.m2_base accepted/tizen_3.0_base accepted/tizen_4.0_base accepted/tizen_5.0_base accepted/tizen_5.5_base accepted/tizen_5.5_base_mobile_hotfix accepted/tizen_5.5_base_wearable_hotfix tizen_3.0 tizen_3.0.m2_base tizen_3.0_base tizen_4.0_base tizen_4.0_tv tizen_5.0_base tizen_5.5_base tizen_5.5_base_mobile_hotfix tizen_5.5_base_wearable_hotfix tizen_5.5_tv accepted/tizen/3.0.m2/base/20170104.082137 accepted/tizen/3.0/base/20161028.103010 accepted/tizen/4.0/base/20170811.092953 accepted/tizen/4.0/base/20170828.221430 accepted/tizen/5.0/base/20181101.091357 accepted/tizen/5.5/base/20191030.084801 accepted/tizen/5.5/base/mobile/hotfix/20201023.090109 accepted/tizen/5.5/base/wearable/hotfix/20201023.082237 accepted/tizen/base/20160617.190153 submit/tizen_3.0.m2_base/20170104.073748 submit/tizen_3.0_base/20161028.062323 submit/tizen_4.0_base/20170811.071500 submit/tizen_4.0_base/20170828.000000 submit/tizen_4.0_base/20170828.000001 submit/tizen_5.0_base/20181101.000001 submit/tizen_5.5_base/20191030.000001 submit/tizen_5.5_base_mobile_hotfix/20201023.171501 submit/tizen_5.5_base_wearable_hotfix/20201023.155601 submit/tizen_base/20160614.022329 tizen_4.0.IoT.p1_release tizen_4.0.IoT.p2_release tizen_4.0.m1_release tizen_4.0.m2_release tizen_5.5.m2_release
authorSungHun Hwang <sh0924.hwang@samsung.com>
Tue, 14 Jun 2016 01:13:50 +0000 (10:13 +0900)
committerSungHun Hwang <sh0924.hwang@samsung.com>
Tue, 14 Jun 2016 01:13:50 +0000 (10:13 +0900)
req. from   : security part
req. reason : https://wiki.ubuntu.com/SecurityTeam/Roadmap/ExecutableStacks

[before]
$ readelf -l libffi.so.6 | grep STACK
  GNU_STACK      0x000000 0x00000000 0x00000000 0x00000 0x00000 RWE 0x10

[after]
$ readelf -l libffi.so.6 | grep STACK
  GNU_STACK      0x000000 0x00000000 0x00000000 0x00000 0x00000 RW  0x10

Change-Id: If29268f7905298185ab639b3bb7a7b3c4080b3b7
Signed-off-by: SungHun Hwang <sh0924.hwang@samsung.com>
packaging/libffi.spec

index 89efc2cc7447c6673c1e53a9f535b61b5664d8bc..6c3c92e2619cb0adafa4d4e5b11207f78f2ad4b6 100644 (file)
@@ -52,6 +52,7 @@ developing applications that use %{name}.
 
 
 %build
+export LDFLAGS+="-Wl,-z,noexecstack"
 %reconfigure --disable-static
 make %{?_smp_mflags}