blob: 1a5507109a8be5f1f3957744688f10df2f8af1bd [file] [log] [blame]
Luca Stefani09271392017-08-18 10:35:47 +02001#
2# This policy configuration will be used by all products that
3# inherit from Lineage
4#
5
dianlujitao370b40b2019-02-14 13:28:42 +08006ifeq ($(TARGET_COPY_OUT_VENDOR), vendor)
7ifeq ($(BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE),)
8TARGET_USES_PREBUILT_VENDOR_SEPOLICY ?= true
9endif
10endif
11
Michael Bestas02128632021-10-07 22:04:41 +030012SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS += \
Ethan Chen5c98e902017-10-18 19:11:22 -070013 device/lineage/sepolicy/common/public
14
Michael Bestas02128632021-10-07 22:04:41 +030015SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS += \
Ethan Chen5c98e902017-10-18 19:11:22 -070016 device/lineage/sepolicy/common/private
Demon000ac09eee2017-12-23 15:07:01 +020017
dianlujitao370b40b2019-02-14 13:28:42 +080018ifeq ($(TARGET_USES_PREBUILT_VENDOR_SEPOLICY), true)
Michael Bestas02128632021-10-07 22:04:41 +030019SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS += \
theimpulsonccc533f2019-11-15 03:52:14 +000020 device/lineage/sepolicy/common/dynamic \
21 device/lineage/sepolicy/common/system
dianlujitao370b40b2019-02-14 13:28:42 +080022else
Aayush Guptafe0dad62020-10-22 13:02:38 +053023BOARD_VENDOR_SEPOLICY_DIRS += \
dianlujitao370b40b2019-02-14 13:28:42 +080024 device/lineage/sepolicy/common/dynamic \
LuK133720256ad2018-02-09 15:43:11 +010025 device/lineage/sepolicy/common/vendor
dianlujitao370b40b2019-02-14 13:28:42 +080026endif
Bruno Martinsb542aee2020-02-25 20:55:33 +000027
28# Selectively include legacy rules defined by the products
29-include device/lineage/sepolicy/legacy-common/sepolicy.mk
Aaron Kling1f0b0992021-08-10 11:11:16 -050030
31# Include atv rules on atv product
32ifeq ($(PRODUCT_IS_ATV), true)
33include device/lineage/sepolicy/atv/sepolicy.mk
34endif