sm8350-common: Add wifi mac generator shell script

Change-Id: I95593db840dc4a668f899d248b2c8e03d4ebbc3e
This commit is contained in:
LuK1337 2019-07-08 15:47:03 +02:00
parent 83d0538609
commit 72da964f9a
6 changed files with 75 additions and 0 deletions

View file

@ -1,6 +1,7 @@
# Binaries
/(vendor|system/vendor)/bin/opf-service u:object_r:opf_exec:s0
/(vendor|system/vendor)/bin/tri-state-key_daemon u:object_r:tri-state-key_daemon_exec:s0
/(vendor|system/vendor)/bin/wifi-mac-generator u:object_r:wifi-mac-generator_exec:s0
/(vendor|system/vendor)/bin/wlchgd u:object_r:wlchgd_exec:s0
# Block devices

12
sepolicy/vendor/wifi-mac-generator.te vendored Normal file
View file

@ -0,0 +1,12 @@
type wifi-mac-generator, domain;
type wifi-mac-generator_exec, exec_type, vendor_file_type, file_type;
init_daemon_domain(wifi-mac-generator)
allow wifi-mac-generator vendor_shell_exec:file rx_file_perms;
allow wifi-mac-generator vendor_toolbox_exec:file rx_file_perms;
r_dir_file(wifi-mac-generator, vendor_data_file)
allow wifi-mac-generator mnt_vendor_file:dir search;
allow wifi-mac-generator mnt_vendor_file:file w_file_perms;