From 2e6a7582d6ce447d1d1f31185ffc6d1c6eaa3ef3 Mon Sep 17 00:00:00 2001 From: Seungbae Shin Date: Mon, 11 Sep 2017 12:01:59 +0900 Subject: [PATCH] Apply ASLR for sound_pool_test [Version] 0.0.5 [Issue Type] Security Change-Id: I599a6357bc99654d97c1865880bf594fac41d46c --- packaging/capi-media-sound-pool.spec | 2 +- test/CMakeLists.txt | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packaging/capi-media-sound-pool.spec b/packaging/capi-media-sound-pool.spec index c0dcb16..8b5fb47 100644 --- a/packaging/capi-media-sound-pool.spec +++ b/packaging/capi-media-sound-pool.spec @@ -1,5 +1,5 @@ Name: capi-media-sound-pool -Version: 0.0.4 +Version: 0.0.5 Summary: Tizen Sound Pool module Release: 0 Group: Multimedia/Framework diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index a27573a..613f537 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -6,7 +6,7 @@ pkg_check_modules(${fw_test} REQUIRED glib-2.0) FOREACH(flag ${${fw_test}_CFLAGS}) SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}") ENDFOREACH(flag) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS}") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -Wall -fPIE") SET(modules "") SET(srcs "") @@ -25,6 +25,8 @@ INCLUDE_DIRECTORIES(${modules}) aux_source_directory(. sources) +SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--as-needed -pie") + FOREACH(src ${sources}) GET_FILENAME_COMPONENT(src_name ${src} NAME_WE) SET(srcs ${src} ${mod_srcs}) -- 2.7.4