summaryrefslogtreecommitdiffstats
path: root/libnativebridge/Android.mk
diff options
context:
space:
mode:
authorAndreas Gampe <agampe@google.com>2014-08-19 22:31:31 -0700
committerAndreas Gampe <agampe@google.com>2014-08-21 14:33:44 -0700
commitcd2ef4c1af69727231b84ebc82864c170ff0e8ad (patch)
treedb2aa475689e96e3050ccfd917682f4aea97af71 /libnativebridge/Android.mk
parent6ba555f2ad878129cd1da9dd7b7613ab166090ab (diff)
downloadsystem_core-cd2ef4c1af69727231b84ebc82864c170ff0e8ad.zip
system_core-cd2ef4c1af69727231b84ebc82864c170ff0e8ad.tar.gz
system_core-cd2ef4c1af69727231b84ebc82864c170ff0e8ad.tar.bz2
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
Diffstat (limited to 'libnativebridge/Android.mk')
-rw-r--r--libnativebridge/Android.mk6
1 files changed, 4 insertions, 2 deletions
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