From cd2ef4c1af69727231b84ebc82864c170ff0e8ad Mon Sep 17 00:00:00 2001 From: Andreas Gampe Date: Tue, 19 Aug 2014 22:31:31 -0700 Subject: NativeBridge: Tighten security on libnativebridge Do not allow arbitrary paths for the native bridge - only allow simple names. Do not allow re-setup of the native bridge. Bug: 16404669 Change-Id: Ie22de356d2307fe2758f9094a85d44e61a4098a1 --- libnativebridge/Android.mk | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'libnativebridge/Android.mk') diff --git a/libnativebridge/Android.mk b/libnativebridge/Android.mk index 017ce02..9403fd2 100644 --- a/libnativebridge/Android.mk +++ b/libnativebridge/Android.mk @@ -10,10 +10,11 @@ include $(CLEAR_VARS) LOCAL_MODULE:= libnativebridge LOCAL_SRC_FILES:= $(NATIVE_BRIDGE_COMMON_SRC_FILES) +LOCAL_SHARED_LIBRARIES := liblog LOCAL_CLANG := true LOCAL_CPP_EXTENSION := .cc LOCAL_CFLAGS := -Werror -LOCAL_CPPFLAGS := -std=gnu++11 +LOCAL_CPPFLAGS := -std=gnu++11 -fvisibility=protected LOCAL_LDFLAGS := -ldl LOCAL_MULTILIB := both @@ -26,10 +27,11 @@ include $(CLEAR_VARS) LOCAL_MODULE:= libnativebridge LOCAL_SRC_FILES:= $(NATIVE_BRIDGE_COMMON_SRC_FILES) +LOCAL_SHARED_LIBRARIES := liblog LOCAL_CLANG := true LOCAL_CPP_EXTENSION := .cc LOCAL_CFLAGS := -Werror -LOCAL_CPPFLAGS := -std=gnu++11 +LOCAL_CPPFLAGS := -std=gnu++11 -fvisibility=protected LOCAL_LDFLAGS := -ldl LOCAL_MULTILIB := both -- cgit v1.1