-
Notifications
You must be signed in to change notification settings - Fork 1
/
SEPolicy.mk
45 lines (36 loc) · 1.4 KB
/
SEPolicy.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Board specific SELinux policy variable definitions
MTK_SEPOLICY_PATH := device/mediatek/sepolicy_vndr
include device/lineage/sepolicy/libperfmgr/sepolicy.mk
ifeq ($(BOARD_MTK_SEPOLICY_IS_LEGACY), true)
# Build with broken namespaces
# Userspace blobs are still dependent older props that
# do not pass the VTS test cases.
ifeq ($(strip $(TARGET_USING_LEGACY_SELINUX)), true)
BUILD_BROKEN_VENDOR_PROPERTY_NAMESPACE := true
BOARD_SEPOLICY_DIRS += \
$(MTK_SEPOLICY_PATH)/legacy/non_plat
endif
BOARD_VENDOR_SEPOLICY_DIRS += \
$(MTK_SEPOLICY_PATH)/legacy/non_plat
endif
BOARD_VENDOR_SEPOLICY_DIRS += \
$(MTK_SEPOLICY_PATH)/basic/non_plat \
$(MTK_SEPOLICY_PATH)/bsp/non_plat \
$(MTK_SEPOLICY_PATH)/modem
SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS += \
$(MTK_SEPOLICY_PATH)/basic/plat_private \
$(MTK_SEPOLICY_PATH)/bsp/plat_private \
SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS += \
$(MTK_SEPOLICY_PATH)/basic/plat_public \
$(MTK_SEPOLICY_PATH)/bsp/plat_public \
ifneq ($(TARGET_BUILD_VARIANT),user)
BOARD_VENDOR_SEPOLICY_DIRS += \
$(MTK_SEPOLICY_PATH)/bsp/debug/non_plat \
$(MTK_SEPOLICY_PATH)/basic/debug/non_plat
SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS += \
$(MTK_SEPOLICY_PATH)/basic/debug/plat_private \
$(MTK_SEPOLICY_PATH)/bsp/debug/plat_private
SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS += \
$(MTK_SEPOLICY_PATH)/basic/debug/plat_public \
$(MTK_SEPOLICY_PATH)/bsp/debug/plat_public
endif