apply ASLR at orchestration_sample executable 86/204086/1
authorwansuyoo <wansu.yoo@samsung.com>
Fri, 19 Apr 2019 06:30:44 +0000 (15:30 +0900)
committerwansuyoo <wansu.yoo@samsung.com>
Fri, 19 Apr 2019 06:32:23 +0000 (15:32 +0900)
result of hardening-check orchestration_sample:
 Position Independent Executable: yes
 Stack protected: no, not found!
 Fortify Source functions: unknown, no protectable libc functions used
 Read-only relocations: no, not found!
 Immediate binding: no, not found!

Change-Id: I1b848d0d5beecf74e853bf7a918acb732d3587e5
Signed-off-by: wansuyoo <wansu.yoo@samsung.com>
src/libedge-orchestration/Makefile

index 866d20dd64cbce9cf101e0577490886f5a3c5856..b231f37635eca47f029b5b544094a828fe632364 100755 (executable)
@@ -21,7 +21,7 @@ default: all
 all: build build-sample
 
 build-sample: build
-       $(CC) -Wall $(SAMPLE_DIR)/main.c -o $(SAMPLE_DIR)/orchestration_sample -I$(INC_DIR) -L$(LIB_DIR) -lorchestration-client `pkg-config --libs --cflags gio-2.0 gio-unix-2.0 glib-2.0`
+       $(CC) -Wall -fPIE -pie $(SAMPLE_DIR)/main.c -o $(SAMPLE_DIR)/orchestration_sample -I$(INC_DIR) -L$(LIB_DIR) -lorchestration-client `pkg-config --libs --cflags gio-2.0 gio-unix-2.0 glib-2.0`
        -rm -f ./sample/*.o
 
 build: