sm6225-common: sepolicy: Simplify SEC NFC policy

Change-Id: I441dadca7d7497f9e7f015437d90d28807bff8ce
This commit is contained in:
Michael Bestas 2023-07-19 22:11:01 +03:00
parent c7e7075365
commit 6d6a28f63a
No known key found for this signature in database
GPG key ID: CC95044519BE6669
3 changed files with 1 additions and 5 deletions

View file

@ -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;

View file

@ -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

View file

@ -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)