sm8250-common: sepolicy: Label STFlashTool
Change-Id: I9b6b0062de8ccd28d73b7ad12ed5cd2084bd70a9
This commit is contained in:
parent
6296e15c1a
commit
edbe98444d
2 changed files with 9 additions and 0 deletions
1
sepolicy/vendor/file_contexts
vendored
1
sepolicy/vendor/file_contexts
vendored
|
@ -53,6 +53,7 @@
|
|||
# NFC
|
||||
/dev/sec-nfc u:object_r:sec_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\.st u:object_r:hal_nfc_default_exec:s0
|
||||
|
||||
|
|
8
sepolicy/vendor/stflashtool.te
vendored
Normal file
8
sepolicy/vendor/stflashtool.te
vendored
Normal 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)
|
Loading…
Reference in a new issue