sm6225-common: sepolicy: Simplify SEC NFC policy
Change-Id: I441dadca7d7497f9e7f015437d90d28807bff8ce
This commit is contained in:
parent
c7e7075365
commit
6d6a28f63a
3 changed files with 1 additions and 5 deletions
3
sepolicy/vendor/file.te
vendored
3
sepolicy/vendor/file.te
vendored
|
@ -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;
|
||||
|
||||
|
|
2
sepolicy/vendor/file_contexts
vendored
2
sepolicy/vendor/file_contexts
vendored
|
@ -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
|
||||
|
|
1
sepolicy/vendor/hal_nfc_default.te
vendored
1
sepolicy/vendor/hal_nfc_default.te
vendored
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue