sm8250-common: sepolicy: Label STFlashTool

Change-Id: I9b6b0062de8ccd28d73b7ad12ed5cd2084bd70a9
This commit is contained in:
SGCMarkus 2022-02-20 16:59:59 +01:00 committed by Michael Bestas
parent 6296e15c1a
commit edbe98444d
No known key found for this signature in database
GPG key ID: CC95044519BE6669
2 changed files with 9 additions and 0 deletions

View file

@ -53,6 +53,7 @@
# NFC # NFC
/dev/sec-nfc u:object_r:sec_device:s0 /dev/sec-nfc u:object_r:sec_device:s0
/dev/st21nfc 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 /(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 /(vendor|system/vendor)/bin/hw/android\.hardware\.nfc@1\.2-service\.st u:object_r:hal_nfc_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 rw_file_perms;
get_prop(stflashtool, vendor_radio_prop)
set_prop(stflashtool, vendor_nfc_prop)