summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/private/genfs_contexts2
-rw-r--r--common/sepolicy.mk6
2 files changed, 8 insertions, 0 deletions
diff --git a/common/private/genfs_contexts b/common/private/genfs_contexts
index 64e51f0..c629305 100644
--- a/common/private/genfs_contexts
+++ b/common/private/genfs_contexts
@@ -1,3 +1,5 @@
+ifelse(board_excludes_fuseblk_sepolicy, `true', ,
genfscon fuseblk / u:object_r:vfat:s0
+)
genfscon sysfs /devices/virtual/timed_output/vibrator u:object_r:sysfs_vibrator:s0
diff --git a/common/sepolicy.mk b/common/sepolicy.mk
index 61d55fe..d50f870 100644
--- a/common/sepolicy.mk
+++ b/common/sepolicy.mk
@@ -9,6 +9,12 @@ TARGET_USES_PREBUILT_VENDOR_SEPOLICY ?= true
endif
endif
+ifeq ($(TARGET_USES_PREBUILT_VENDOR_SEPOLICY), true)
+ifeq ($(TARGET_HAS_FUSEBLK_SEPOLICY_ON_VENDOR),true)
+BOARD_SEPOLICY_M4DEFS += board_excludes_fuseblk_sepolicy=true
+endif
+endif
+
BOARD_PLAT_PUBLIC_SEPOLICY_DIR += \
device/lineage/sepolicy/common/public