From 43be610d8f65ce9edad4213fc88dbf4f61deb23d Mon Sep 17 00:00:00 2001 From: Davide Garberi Date: Thu, 7 Oct 2021 09:39:16 +0200 Subject: msm8996-common: sepolicy: Move /data/fpc context to private Change-Id: I8c3d826c2fad645200d5375be935bdbb14a52e37 --- BoardConfigCommon.mk | 1 + sepolicy/private/file_contexts | 1 + sepolicy/vendor/file_contexts | 1 - 3 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 sepolicy/private/file_contexts diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk index eb425d9..8bfe645 100644 --- a/BoardConfigCommon.mk +++ b/BoardConfigCommon.mk @@ -181,6 +181,7 @@ VENDOR_SECURITY_PATCH := 2018-11-05 include device/qcom/sepolicy-legacy-um/SEPolicy.mk BOARD_VENDOR_SEPOLICY_DIRS += $(VENDOR_PATH)/sepolicy/vendor +BOARD_PLAT_PRIVATE_SEPOLICY_DIR += $(VENDOR_PATH)/sepolicy/private # Vendor init TARGET_INIT_VENDOR_LIB := //$(VENDOR_PATH):libinit_msm8996 diff --git a/sepolicy/private/file_contexts b/sepolicy/private/file_contexts new file mode 100644 index 0000000..ce6d730 --- /dev/null +++ b/sepolicy/private/file_contexts @@ -0,0 +1 @@ +/data/fpc(/.*)? u:object_r:fpc_data_file:s0 diff --git a/sepolicy/vendor/file_contexts b/sepolicy/vendor/file_contexts index f3745f7..7f09103 100644 --- a/sepolicy/vendor/file_contexts +++ b/sepolicy/vendor/file_contexts @@ -7,7 +7,6 @@ /sys/devices/vendor/vendor:bt_qca6174/rfkill/rfkill0/state u:object_r:sysfs_bluetooth_writable:s0 # Data files -/data/fpc(/.*)? u:object_r:fpc_data_file:s0 /data/decrypt\.txt u:object_r:thermal_data_file:s0 /data/vendor/qcam(/.*)? u:object_r:vendor_camera_data_file:s0 /data/vendor/misc/audio/acdbdata/delta(/.*)? u:object_r:acdbdelta_vendor_data_file:s0 -- cgit v1.2.3