From 2a324410b956ea63ebc0f089d721b911c25b9086 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Fri, 27 Mar 2020 08:29:19 +0100 Subject: [PATCH] common: Label block devices Change-Id: I4d116f48da9c309ad374b711a5d4a7d7ae63acea --- common/vendor/device.te | 9 +++++++++ common/vendor/file_contexts | 13 +++++++++++++ 2 files changed, 22 insertions(+) diff --git a/common/vendor/device.te b/common/vendor/device.te index 94329b8..ec91c2b 100644 --- a/common/vendor/device.te +++ b/common/vendor/device.te @@ -1,2 +1,11 @@ # device.te +type efs_block_device, dev_type; +type dqmdbg_block_device, dev_type; +type keydata_block_device, dev_type; +type keyrefuge_block_device, dev_type; +type modem_block_device, dev_type; +type omr_block_device, dev_type; +type radio_block_device, dev_type; +type sec_efs_block_device, dev_type; + type fp_sensor_device, dev_type; diff --git a/common/vendor/file_contexts b/common/vendor/file_contexts index eafc9bd..0ef50a7 100644 --- a/common/vendor/file_contexts +++ b/common/vendor/file_contexts @@ -6,6 +6,19 @@ /data/vendor/wifi(/.*)? u:object_r:wifi_vendor_data_file:s0 ### DEV +/dev/block/platform/.+/by-name/cache u:object_r:cache_block_device:s0 +/dev/block/platform/.+/by-name/efs u:object_r:efs_block_device:s0 +/dev/block/platform/.+/by-name/dqmdbg u:object_r:dqmdbg_block_device:s0 +/dev/block/platform/.+/by-name/keydata u:object_r:keydata_block_device:s0 +/dev/block/platform/.+/by-name/keyrefuge u:object_r:keyrefuge_block_device:s0 +/dev/block/platform/.+/by-name/misc u:object_r:misc_block_device:s0 +/dev/block/platform/.+/by-name/modem u:object_r:modem_block_device:s0 +/dev/block/platform/.+/by-name/omr u:object_r:omr_block_device:s0 +/dev/block/platform/.+/by-name/persistent u:object_r:frp_block_device:s0 +/dev/block/platform/.+/by-name/radio u:object_r:radio_block_device:s0 +/dev/block/platform/.+/by-name/sec_efs u:object_r:sec_efs_block_device:s0 +/dev/block/platform/.+/by-name/userdata u:object_r:userdata_block_device:s0 + /dev/esfp[0-9] u:object_r:fp_sensor_device:s0 ### EFS -- 2.20.1