2019-08-28 20:44:24 +02:00
|
|
|
# Board specific SELinux policy variable definitions
|
|
|
|
ifeq ($(call is-vendor-board-platform,QCOM),true)
|
2020-05-04 14:51:51 +02:00
|
|
|
SEPOLICY_PATH:= device/qcom/sepolicy_vndr
|
2020-05-12 11:53:37 +02:00
|
|
|
QSSI_SEPOLICY_PATH:= device/qcom/sepolicy
|
2020-06-25 07:26:56 +02:00
|
|
|
SYS_ATTR_PROJECT_PATH := $(TOP)/device/qcom/sepolicy/generic/public/attribute
|
2020-05-05 04:46:39 +02:00
|
|
|
BOARD_PLAT_PUBLIC_SEPOLICY_DIR := \
|
|
|
|
$(BOARD_PLAT_PUBLIC_SEPOLICY_DIR) \
|
2020-07-20 09:04:16 +02:00
|
|
|
$(QSSI_SEPOLICY_PATH)/generic/public \
|
|
|
|
$(QSSI_SEPOLICY_PATH)/generic/public/attribute
|
2020-05-05 04:46:39 +02:00
|
|
|
|
|
|
|
BOARD_PLAT_PRIVATE_SEPOLICY_DIR := \
|
|
|
|
$(BOARD_PLAT_PRIVATE_SEPOLICY_DIR) \
|
|
|
|
$(QSSI_SEPOLICY_PATH)/generic/private
|
|
|
|
|
|
|
|
BOARD_PLAT_PUBLIC_SEPOLICY_DIR := \
|
|
|
|
$(BOARD_PLAT_PUBLIC_SEPOLICY_DIR) \
|
2020-07-20 09:04:16 +02:00
|
|
|
$(QSSI_SEPOLICY_PATH)/qva/public \
|
|
|
|
$(QSSI_SEPOLICY_PATH)/qva/public/attribute
|
2020-05-05 04:46:39 +02:00
|
|
|
|
|
|
|
BOARD_PLAT_PRIVATE_SEPOLICY_DIR := \
|
|
|
|
$(BOARD_PLAT_PRIVATE_SEPOLICY_DIR) \
|
|
|
|
$(QSSI_SEPOLICY_PATH)/qva/private
|
|
|
|
|
|
|
|
#once all the services are moved to Product /ODM above lines will be removed.
|
|
|
|
# sepolicy rules for product images
|
|
|
|
PRODUCT_PUBLIC_SEPOLICY_DIRS := \
|
|
|
|
$(PRODUCT_PUBLIC_SEPOLICY_DIRS) \
|
|
|
|
$(QSSI_SEPOLICY_PATH)/generic/product/public \
|
|
|
|
$(QSSI_SEPOLICY_PATH)/qva/product/public
|
|
|
|
|
|
|
|
PRODUCT_PRIVATE_SEPOLICY_DIRS := \
|
|
|
|
$(PRODUCT_PRIVATE_SEPOLICY_DIRS) \
|
|
|
|
$(QSSI_SEPOLICY_PATH)/generic/product/private \
|
|
|
|
$(QSSI_SEPOLICY_PATH)/qva/product/private
|
|
|
|
|
2019-08-28 20:44:24 +02:00
|
|
|
ifeq (,$(filter sdm845 sdm710, $(TARGET_BOARD_PLATFORM)))
|
|
|
|
BOARD_SEPOLICY_DIRS := \
|
|
|
|
$(BOARD_SEPOLICY_DIRS) \
|
|
|
|
$(SEPOLICY_PATH) \
|
|
|
|
$(SEPOLICY_PATH)/generic/vendor/common \
|
|
|
|
$(SEPOLICY_PATH)/qva/vendor/ssg \
|
|
|
|
$(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
|
2020-07-21 14:38:49 +02:00
|
|
|
BOARD_SEPOLICY_DIRS += $(SEPOLICY_PATH)/qva/vendor/test/sysmonapp
|
2019-08-28 20:44:24 +02:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter sdm845 sdm710, $(TARGET_BOARD_PLATFORM)))
|
|
|
|
BOARD_SEPOLICY_DIRS := \
|
|
|
|
$(BOARD_SEPOLICY_DIRS) \
|
|
|
|
$(SEPOLICY_PATH) \
|
|
|
|
$(SEPOLICY_PATH)/legacy/vendor/ssg \
|
|
|
|
$(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
|
2020-07-21 14:38:49 +02:00
|
|
|
BOARD_SEPOLICY_DIRS += $(SEPOLICY_PATH)/legacy/vendor/test/sysmonapp
|
2019-08-28 20:44:24 +02:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|