sm7250-common: Add wifi mac generator shell script

Change-Id: I95593db840dc4a668f899d248b2c8e03d4ebbc3e
This commit is contained in:
LuK1337
2019-07-08 15:47:03 +02:00
committed by KakatkarAkshay
parent e442fed8ca
commit a56ed01f90
6 changed files with 75 additions and 0 deletions

View File

@@ -3,6 +3,7 @@
/(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/vl53l1_daemon_main u:object_r:vl53l1_daemon_main_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;