2019-08-28 20:44:24 +02:00
|
|
|
# Board specific SELinux policy variable definitions
|
2019-09-26 01:16:53 +02:00
|
|
|
SEPOLICY_PATH:= device/qcom/sepolicy-legacy-um
|
2021-10-11 05:54:07 +02:00
|
|
|
SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS := \
|
|
|
|
$(SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS) \
|
2020-11-23 08:33:47 +01:00
|
|
|
$(SEPOLICY_PATH)/generic/public \
|
|
|
|
$(SEPOLICY_PATH)/generic/public/attribute
|
2019-08-28 20:44:24 +02:00
|
|
|
|
2021-10-11 05:54:07 +02:00
|
|
|
SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS := \
|
|
|
|
$(SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS) \
|
2019-08-28 20:44:24 +02:00
|
|
|
$(SEPOLICY_PATH)/generic/private
|
|
|
|
|
2021-10-11 05:54:07 +02:00
|
|
|
SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS := \
|
|
|
|
$(SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS) \
|
2020-11-23 08:33:47 +01:00
|
|
|
$(SEPOLICY_PATH)/qva/public \
|
|
|
|
$(SEPOLICY_PATH)/qva/public/attribute
|
2019-08-28 20:44:24 +02:00
|
|
|
|
2021-10-11 05:54:07 +02:00
|
|
|
SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS := \
|
|
|
|
$(SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS) \
|
2019-08-28 20:44:24 +02:00
|
|
|
$(SEPOLICY_PATH)/qva/private
|
|
|
|
|
2019-09-13 11:45:44 +02:00
|
|
|
#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) \
|
2020-01-29 12:44:10 +01:00
|
|
|
$(SEPOLICY_PATH)/generic/product/public \
|
2020-10-22 09:32:38 +02:00
|
|
|
$(SEPOLICY_PATH)/qva/product/public
|
2019-09-13 11:45:44 +02:00
|
|
|
|
|
|
|
PRODUCT_PRIVATE_SEPOLICY_DIRS := \
|
|
|
|
$(PRODUCT_PRIVATE_SEPOLICY_DIRS) \
|
2020-01-29 12:44:10 +01:00
|
|
|
$(SEPOLICY_PATH)/generic/product/private \
|
|
|
|
$(SEPOLICY_PATH)/qva/product/private
|
2019-09-13 11:45:44 +02:00
|
|
|
|
2020-09-27 11:35:17 +02:00
|
|
|
ifneq (,$(filter sdm660 msm8937 msm8953 msm8996 msm8998, $(TARGET_BOARD_PLATFORM)))
|
2020-10-22 09:32:38 +02:00
|
|
|
BOARD_VENDOR_SEPOLICY_DIRS := \
|
|
|
|
$(BOARD_VENDOR_SEPOLICY_DIRS) \
|
2019-08-28 20:44:24 +02:00
|
|
|
$(SEPOLICY_PATH) \
|
|
|
|
$(SEPOLICY_PATH)/legacy/vendor/common/sysmonapp \
|
|
|
|
$(SEPOLICY_PATH)/legacy/vendor/ssg \
|
|
|
|
$(SEPOLICY_PATH)/legacy/vendor/common
|
|
|
|
|
|
|
|
ifeq ($(TARGET_SEPOLICY_DIR),)
|
2020-10-22 09:32:38 +02:00
|
|
|
BOARD_VENDOR_SEPOLICY_DIRS += $(SEPOLICY_PATH)/legacy/vendor/$(TARGET_BOARD_PLATFORM)
|
2019-08-28 20:44:24 +02:00
|
|
|
else
|
2020-10-22 09:32:38 +02:00
|
|
|
BOARD_VENDOR_SEPOLICY_DIRS += $(SEPOLICY_PATH)/legacy/vendor/$(TARGET_SEPOLICY_DIR)
|
2019-08-28 20:44:24 +02:00
|
|
|
endif
|
|
|
|
ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
|
2023-05-30 02:23:53 +02:00
|
|
|
ifneq ($(PRODUCT_SET_DEBUGFS_RESTRICTIONS),true)
|
|
|
|
BOARD_VENDOR_SEPOLICY_DIRS += $(SEPOLICY_PATH)/legacy/vendor/common/debugfs
|
|
|
|
BOARD_VENDOR_SEPOLICY_DIRS += $(SEPOLICY_PATH)/legacy/vendor/test/debugfs
|
|
|
|
endif
|
|
|
|
BOARD_VENDOR_SEPOLICY_DIRS += $(SEPOLICY_PATH)/legacy/vendor/test
|
2019-08-28 20:44:24 +02:00
|
|
|
endif
|
|
|
|
endif
|
2020-09-19 03:39:06 +02:00
|
|
|
|
|
|
|
-include device/lineage/sepolicy/qcom/sepolicy.mk
|