From 6d6a28f63afa8bd244417635fbf5a5109a84fc76 Mon Sep 17 00:00:00 2001 From: Michael Bestas Date: Wed, 19 Jul 2023 22:11:01 +0300 Subject: [PATCH] sm6225-common: sepolicy: Simplify SEC NFC policy Change-Id: I441dadca7d7497f9e7f015437d90d28807bff8ce --- sepolicy/vendor/file.te | 3 --- sepolicy/vendor/file_contexts | 2 +- sepolicy/vendor/hal_nfc_default.te | 1 - 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/sepolicy/vendor/file.te b/sepolicy/vendor/file.te index 513ac87..1e7d34d 100644 --- a/sepolicy/vendor/file.te +++ b/sepolicy/vendor/file.te @@ -17,9 +17,6 @@ type vendor_motobox_exec, exec_type, vendor_file_type, file_type; type vendor_proc_hw, proc_type, fs_type; type vendor_sysfs_devicetree_mmi, sysfs_type, fs_type; -# NFC -type sec_device, dev_type; - # Partitions type fsg_file, file_type, contextmount_type, vendor_file_type; diff --git a/sepolicy/vendor/file_contexts b/sepolicy/vendor/file_contexts index d10c651..a26a5f9 100644 --- a/sepolicy/vendor/file_contexts +++ b/sepolicy/vendor/file_contexts @@ -51,7 +51,7 @@ /(vendor|system/vendor)/bin/motobox u:object_r:vendor_motobox_exec:s0 # NFC -/dev/sec-nfc u:object_r:sec_device:s0 +/dev/sec-nfc u:object_r:nfc_device:s0 /dev/st21nfc u:object_r:nfc_device:s0 /(vendor|system/vendor)/bin/STFlashTool u:object_r:stflashtool_exec:s0 /(vendor|system/vendor)/bin/hw/android\.hardware\.nfc@1\.2-service\.sec u:object_r:hal_nfc_default_exec:s0 diff --git a/sepolicy/vendor/hal_nfc_default.te b/sepolicy/vendor/hal_nfc_default.te index dc46493..bd609c5 100644 --- a/sepolicy/vendor/hal_nfc_default.te +++ b/sepolicy/vendor/hal_nfc_default.te @@ -2,7 +2,6 @@ add_hwservice(hal_nfc_default, nxpese_hwservice) add_hwservice(hal_nfc_default, nxpnfc_hwservice) allow hal_nfc_default vendor_nfc_vendor_data_file:dir create_dir_perms; allow hal_nfc_default vendor_nfc_vendor_data_file:file create_file_perms; -allow hal_nfc_default sec_device:chr_file rw_file_perms; get_prop(hal_nfc_default, vendor_radio_prop) set_prop(hal_nfc_default, vendor_nfc_prop)