sm6225-common: sepolicy: Label ST NFC

Change-Id: I940a8394b7c4fed0af86faa55d931e3963497123
This commit is contained in:
Michael Bestas 2023-07-19 21:02:06 +03:00
parent da33bb6a22
commit 6296e15c1a
No known key found for this signature in database
GPG key ID: CC95044519BE6669
2 changed files with 3 additions and 0 deletions

View file

@ -52,7 +52,9 @@
# NFC
/dev/sec-nfc u:object_r:sec_device:s0
/dev/st21nfc u:object_r:nfc_device:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.nfc@1\.2-service\.sec u:object_r:hal_nfc_default_exec:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.nfc@1\.2-service\.st u:object_r:hal_nfc_default_exec:s0
# Radio
/data/vendor/misc/cutback(/.*)? u:object_r:cutback_data_file:s0

View file

@ -4,4 +4,5 @@ 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)