blob: 28128620d06b4aa3e3031b22496b9c0e8ac53b98 [file] [log] [blame]
Vincent Palatinab3d9e82015-09-30 17:27:16 -07001# permissions for /system/bin/dump_bq25892.sh
2# which is used to debug information about the state of the charger chip
Jeff Vander Stoep65f13292015-11-04 08:55:47 -08003type dump_bq25892, domain, domain_deprecated;
Vincent Palatinab3d9e82015-09-30 17:27:16 -07004type dump_bq25892_exec, exec_type, file_type;
5type fw_logs_data_file, file_type, data_file_type;
6
7init_daemon_domain(dump_bq25892)
8
9# Run a shell.
10allow dump_bq25892 shell_exec:file rx_file_perms;
11
Jeff Vander Stoep791f5222016-03-15 09:31:58 -070012# Run toybox.
13allow dump_bq25892 toolbox_exec:file rx_file_perms;
14
Vincent Palatinab3d9e82015-09-30 17:27:16 -070015# Use fwtool to communicate with the EC through /dev/cros_ec
16allow dump_bq25892 fwtool_exec:file rx_file_perms;
17allow dump_bq25892 cros_ec_device:chr_file rw_file_perms;
18
19# write and set world readable attribute on /data/misc/fw_logs/bq25892.txt log file
20allow dump_bq25892 fw_logs_data_file:file create_file_perms;
21allow dump_bq25892 fw_logs_data_file:dir w_dir_perms;