sm8250-common: sepolicy: label stflashtool and st secure_element

This commit is contained in:
SGCMarkus 2022-02-20 16:59:59 +01:00
parent 54cdde429d
commit b43e3fd93e
2 changed files with 12 additions and 0 deletions

View File

@ -60,6 +60,7 @@
/(vendor|system/vendor)/bin/motobox u:object_r:vendor_motobox_exec:s0 /(vendor|system/vendor)/bin/motobox u:object_r:vendor_motobox_exec:s0
# NFC # NFC
/(vendor|system/vendor)/bin/STFlashTool u:object_r:stflashtool_exec:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.nfc@1\.2-service\.st 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
/dev/st21nfc u:object_r:nfc_device:s0 /dev/st21nfc u:object_r:nfc_device:s0
@ -70,6 +71,9 @@
/data/vendor/misc/cutback(/.*)? u:object_r:cutback_data_file:s0 /data/vendor/misc/cutback(/.*)? u:object_r:cutback_data_file:s0
/dev/socket/cutback u:object_r:cutback_socket:s0 /dev/socket/cutback u:object_r:cutback_socket:s0
# Secure Element
/(vendor|system/vendor)/bin/hw/android\.hardware\.secure_element@1\.2-service\.st u:object_r:hal_secure_element_default_exec:s0
# Touch # Touch
/(vendor|system/vendor)/bin/hw/vendor\.lineage\.touch@1\.0-service\.nio u:object_r:hal_lineage_touch_default_exec:s0 /(vendor|system/vendor)/bin/hw/vendor\.lineage\.touch@1\.0-service\.nio u:object_r:hal_lineage_touch_default_exec:s0

8
sepolicy/vendor/stflashtool.te vendored Normal file
View File

@ -0,0 +1,8 @@
type stflashtool, domain;
type stflashtool_exec, exec_type, vendor_file_type, file_type;
init_daemon_domain(stflashtool)
allow stflashtool nfc_device:chr_file {ioctl read write getattr lock append map open watch watch_reads};
get_prop(stflashtool, vendor_radio_prop)
set_prop(stflashtool, vendor_mot_nfc_prop)