From c9d214823770e6d3aebc6f6fa1ce82e8865f75eb Mon Sep 17 00:00:00 2001 From: Giuseppe Barillari Date: Sat, 21 Apr 2018 13:29:20 +0200 Subject: [PATCH] msm8976-common: sepolicy: Remove debugfs_rmt rules * Already present in device/qcom/sepolicy/legacy-common Change-Id: Ie776556d6c3f64b8e4553990c9507ea0dcf9ca0a Signed-off-by: Giuseppe Barillari --- sepolicy/file.te | 1 - sepolicy/file_contexts | 3 --- sepolicy/rmt_storage.te | 3 --- 3 files changed, 7 deletions(-) diff --git a/sepolicy/file.te b/sepolicy/file.te index 3948bb2..069f044 100644 --- a/sepolicy/file.te +++ b/sepolicy/file.te @@ -1,6 +1,5 @@ type app_efs_file, file_type; type biometrics_data_file, file_type, data_file_type; -type debugfs_rmt, debugfs_type, fs_type; type wifi_efs_file, file_type; type sysfs_mdnie, fs_type, sysfs_type; type sysfs_sec_key, fs_type, sysfs_type; diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts index bb48f4e..a954694 100644 --- a/sepolicy/file_contexts +++ b/sepolicy/file_contexts @@ -5,9 +5,6 @@ # Cache /dev/block/platform/soc\.0/7824900\.sdhci/by-name/cache u:object_r:cache_block_device:s0 -# Debug -/sys/kernel/debug/rmt_storage(/.*)? u:object_r:debugfs_rmt:s0 - # EFS /dev/block/platform/soc\.0/7824900\.sdhci/by-name/efs u:object_r:efs_block_device:s0 /efs/bluetooth(/.*)? u:object_r:bluetooth_efs_file:s0 diff --git a/sepolicy/rmt_storage.te b/sepolicy/rmt_storage.te index 6bb28f0..2fc2dac 100644 --- a/sepolicy/rmt_storage.te +++ b/sepolicy/rmt_storage.te @@ -1,6 +1,3 @@ -allow rmt_storage debugfs_rmt:dir search; -allow rmt_storage debugfs_rmt:file rw_file_perms; - allow rmt_storage self:capability net_raw; set_prop(rmt_storage, rmt_storage_prop)