Suresh Reddy Yellala | 1ca2d27 | 2019-08-28 11:44:24 -0700 | [diff] [blame] | 1 | # Board specific SELinux policy variable definitions |
| 2 | ifeq ($(call is-vendor-board-platform,QCOM),true) |
| 3 | SEPOLICY_PATH:= device/qcom/sepolicy |
| 4 | BOARD_PLAT_PUBLIC_SEPOLICY_DIR := \ |
| 5 | $(BOARD_PLAT_PUBLIC_SEPOLICY_DIR) \ |
| 6 | $(SEPOLICY_PATH)/generic/public |
| 7 | |
| 8 | BOARD_PLAT_PRIVATE_SEPOLICY_DIR := \ |
| 9 | $(BOARD_PLAT_PRIVATE_SEPOLICY_DIR) \ |
| 10 | $(SEPOLICY_PATH)/generic/private |
| 11 | |
| 12 | BOARD_PLAT_PUBLIC_SEPOLICY_DIR := \ |
| 13 | $(BOARD_PLAT_PUBLIC_SEPOLICY_DIR) \ |
| 14 | $(SEPOLICY_PATH)/qva/public |
| 15 | |
| 16 | BOARD_PLAT_PRIVATE_SEPOLICY_DIR := \ |
| 17 | $(BOARD_PLAT_PRIVATE_SEPOLICY_DIR) \ |
| 18 | $(SEPOLICY_PATH)/qva/private |
| 19 | |
Jaihind Yadav | a88beb1 | 2019-09-13 15:15:44 +0530 | [diff] [blame] | 20 | #once all the services are moved to Product /ODM above lines will be removed. |
| 21 | # sepolicy rules for product images |
| 22 | PRODUCT_PUBLIC_SEPOLICY_DIRS := \ |
| 23 | $(PRODUCT_PUBLIC_SEPOLICY_DIRS) \ |
Jaihind Yadav | 9a10acb | 2020-01-29 17:14:10 +0530 | [diff] [blame] | 24 | $(SEPOLICY_PATH)/generic/product/public \ |
| 25 | $(SEPOLICY_PATH)/qva/product/public |
Jaihind Yadav | a88beb1 | 2019-09-13 15:15:44 +0530 | [diff] [blame] | 26 | |
| 27 | PRODUCT_PRIVATE_SEPOLICY_DIRS := \ |
| 28 | $(PRODUCT_PRIVATE_SEPOLICY_DIRS) \ |
Jaihind Yadav | 9a10acb | 2020-01-29 17:14:10 +0530 | [diff] [blame] | 29 | $(SEPOLICY_PATH)/generic/product/private \ |
| 30 | $(SEPOLICY_PATH)/qva/product/private |
Jaihind Yadav | a88beb1 | 2019-09-13 15:15:44 +0530 | [diff] [blame] | 31 | |
Suresh Reddy Yellala | 1ca2d27 | 2019-08-28 11:44:24 -0700 | [diff] [blame] | 32 | ifeq (,$(filter sdm845 sdm710, $(TARGET_BOARD_PLATFORM))) |
| 33 | BOARD_SEPOLICY_DIRS := \ |
| 34 | $(BOARD_SEPOLICY_DIRS) \ |
| 35 | $(SEPOLICY_PATH) \ |
| 36 | $(SEPOLICY_PATH)/generic/vendor/common \ |
| 37 | $(SEPOLICY_PATH)/qva/vendor/common/sysmonapp \ |
| 38 | $(SEPOLICY_PATH)/qva/vendor/ssg \ |
Suresh Reddy Yellala | 1ca2d27 | 2019-08-28 11:44:24 -0700 | [diff] [blame] | 39 | $(SEPOLICY_PATH)/qva/vendor/common |
| 40 | |
| 41 | ifeq ($(TARGET_SEPOLICY_DIR),) |
| 42 | BOARD_SEPOLICY_DIRS += $(SEPOLICY_PATH)/generic/vendor/$(TARGET_BOARD_PLATFORM) |
| 43 | BOARD_SEPOLICY_DIRS += $(SEPOLICY_PATH)/qva/vendor/$(TARGET_BOARD_PLATFORM) |
| 44 | else |
| 45 | BOARD_SEPOLICY_DIRS += $(SEPOLICY_PATH)/generic/vendor/$(TARGET_SEPOLICY_DIR) |
| 46 | BOARD_SEPOLICY_DIRS += $(SEPOLICY_PATH)/qva/vendor/$(TARGET_SEPOLICY_DIR) |
| 47 | endif |
| 48 | |
| 49 | ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT))) |
| 50 | BOARD_SEPOLICY_DIRS += $(SEPOLICY_PATH)/generic/vendor/test |
| 51 | BOARD_SEPOLICY_DIRS += $(SEPOLICY_PATH)/qva/vendor/test |
| 52 | endif |
| 53 | endif |
| 54 | |
| 55 | ifneq (,$(filter sdm845 sdm710, $(TARGET_BOARD_PLATFORM))) |
| 56 | BOARD_SEPOLICY_DIRS := \ |
| 57 | $(BOARD_SEPOLICY_DIRS) \ |
| 58 | $(SEPOLICY_PATH) \ |
| 59 | $(SEPOLICY_PATH)/legacy/vendor/common/sysmonapp \ |
| 60 | $(SEPOLICY_PATH)/legacy/vendor/ssg \ |
Suresh Reddy Yellala | 1ca2d27 | 2019-08-28 11:44:24 -0700 | [diff] [blame] | 61 | $(SEPOLICY_PATH)/legacy/vendor/common |
| 62 | |
| 63 | ifeq ($(TARGET_SEPOLICY_DIR),) |
| 64 | BOARD_SEPOLICY_DIRS += $(SEPOLICY_PATH)/legacy/vendor/$(TARGET_BOARD_PLATFORM) |
| 65 | else |
| 66 | BOARD_SEPOLICY_DIRS += $(SEPOLICY_PATH)/legacy/vendor/$(TARGET_SEPOLICY_DIR) |
| 67 | endif |
| 68 | ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT))) |
| 69 | BOARD_SEPOLICY_DIRS += $(SEPOLICY_PATH)/legacy/vendor/test |
| 70 | endif |
| 71 | endif |
| 72 | endif |