69154df9ef
Add a MAC check to the svc_can_register function in service_manager. The types are defined in external/sepolicy/service.te and the mapping from service names is defined in external/sepolicy/service_contexts. Currently uses the property context backend to parse the contexts file. Bug: 12909011 Change-Id: I5d90a614263c60571c7c70c2882e6fa929911ca5
26 lines
594 B
Makefile
26 lines
594 B
Makefile
LOCAL_PATH:= $(call my-dir)
|
|
|
|
svc_c_flags = \
|
|
-Wall -Wextra \
|
|
|
|
ifneq ($(TARGET_USES_64_BIT_BINDER),true)
|
|
ifneq ($(TARGET_IS_64_BIT),true)
|
|
svc_c_flags += -DBINDER_IPC_32BIT=1
|
|
endif
|
|
endif
|
|
|
|
include $(CLEAR_VARS)
|
|
LOCAL_SHARED_LIBRARIES := liblog
|
|
LOCAL_SRC_FILES := bctest.c binder.c
|
|
LOCAL_CFLAGS += $(svc_c_flags)
|
|
LOCAL_MODULE := bctest
|
|
LOCAL_MODULE_TAGS := optional
|
|
include $(BUILD_EXECUTABLE)
|
|
|
|
include $(CLEAR_VARS)
|
|
LOCAL_SHARED_LIBRARIES := liblog libselinux
|
|
LOCAL_SRC_FILES := service_manager.c binder.c
|
|
LOCAL_CFLAGS += $(svc_c_flags)
|
|
LOCAL_MODULE := servicemanager
|
|
include $(BUILD_EXECUTABLE)
|