2019-08-28 20:44:24 +02:00
|
|
|
# Board specific SELinux policy variable definitions
|
|
|
|
ifeq ($(call is-vendor-board-platform,QCOM),true)
|
|
|
|
SEPOLICY_PATH:= device/qcom/sepolicy
|
|
|
|
BOARD_PLAT_PUBLIC_SEPOLICY_DIR := \
|
|
|
|
$(BOARD_PLAT_PUBLIC_SEPOLICY_DIR) \
|
|
|
|
$(SEPOLICY_PATH)/generic/public
|
|
|
|
|
|
|
|
BOARD_PLAT_PRIVATE_SEPOLICY_DIR := \
|
|
|
|
$(BOARD_PLAT_PRIVATE_SEPOLICY_DIR) \
|
|
|
|
$(SEPOLICY_PATH)/generic/private
|
|
|
|
|
|
|
|
BOARD_PLAT_PUBLIC_SEPOLICY_DIR := \
|
|
|
|
$(BOARD_PLAT_PUBLIC_SEPOLICY_DIR) \
|
|
|
|
$(SEPOLICY_PATH)/qva/public
|
|
|
|
|
|
|
|
BOARD_PLAT_PRIVATE_SEPOLICY_DIR := \
|
|
|
|
$(BOARD_PLAT_PRIVATE_SEPOLICY_DIR) \
|
|
|
|
$(SEPOLICY_PATH)/qva/private
|
|
|
|
|
|
|
|
ifeq (,$(filter sdm845 sdm710, $(TARGET_BOARD_PLATFORM)))
|
|
|
|
BOARD_SEPOLICY_DIRS := \
|
|
|
|
$(BOARD_SEPOLICY_DIRS) \
|
|
|
|
$(SEPOLICY_PATH) \
|
|
|
|
$(SEPOLICY_PATH)/generic/vendor/common \
|
|
|
|
$(SEPOLICY_PATH)/qva/vendor/common/sysmonapp \
|
|
|
|
$(SEPOLICY_PATH)/qva/vendor/ssg \
|
2019-07-26 16:05:23 +02:00
|
|
|
$(SEPOLICY_PATH)/timeservice \
|
2019-08-28 20:44:24 +02:00
|
|
|
$(SEPOLICY_PATH)/qva/vendor/common
|
|
|
|
|
|
|
|
ifeq ($(TARGET_SEPOLICY_DIR),)
|
|
|
|
BOARD_SEPOLICY_DIRS += $(SEPOLICY_PATH)/generic/vendor/$(TARGET_BOARD_PLATFORM)
|
|
|
|
BOARD_SEPOLICY_DIRS += $(SEPOLICY_PATH)/qva/vendor/$(TARGET_BOARD_PLATFORM)
|
|
|
|
else
|
|
|
|
BOARD_SEPOLICY_DIRS += $(SEPOLICY_PATH)/generic/vendor/$(TARGET_SEPOLICY_DIR)
|
|
|
|
BOARD_SEPOLICY_DIRS += $(SEPOLICY_PATH)/qva/vendor/$(TARGET_SEPOLICY_DIR)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
|
|
|
|
BOARD_SEPOLICY_DIRS += $(SEPOLICY_PATH)/generic/vendor/test
|
|
|
|
BOARD_SEPOLICY_DIRS += $(SEPOLICY_PATH)/qva/vendor/test
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter sdm845 sdm710, $(TARGET_BOARD_PLATFORM)))
|
|
|
|
BOARD_SEPOLICY_DIRS := \
|
|
|
|
$(BOARD_SEPOLICY_DIRS) \
|
|
|
|
$(SEPOLICY_PATH) \
|
|
|
|
$(SEPOLICY_PATH)/legacy/vendor/common/sysmonapp \
|
|
|
|
$(SEPOLICY_PATH)/legacy/vendor/ssg \
|
2019-07-26 16:05:23 +02:00
|
|
|
$(SEPOLICY_PATH)/timeservice \
|
2019-08-28 20:44:24 +02:00
|
|
|
$(SEPOLICY_PATH)/legacy/vendor/common
|
|
|
|
|
|
|
|
ifeq ($(TARGET_SEPOLICY_DIR),)
|
|
|
|
BOARD_SEPOLICY_DIRS += $(SEPOLICY_PATH)/legacy/vendor/$(TARGET_BOARD_PLATFORM)
|
|
|
|
else
|
|
|
|
BOARD_SEPOLICY_DIRS += $(SEPOLICY_PATH)/legacy/vendor/$(TARGET_SEPOLICY_DIR)
|
|
|
|
endif
|
|
|
|
ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
|
|
|
|
BOARD_SEPOLICY_DIRS += $(SEPOLICY_PATH)/legacy/vendor/test
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|