Storage: refactor dump_storage

Bug: 287884851
Test: run bugreport
Change-Id: I126f363b741616690b8e5e3b8fe522da7cd5c2ca
Signed-off-by: Randall Huang <huangrandall@google.com>
This commit is contained in:
Randall Huang 2023-07-13 17:25:08 +08:00
parent 51da07a0ea
commit a5949cd099
6 changed files with 166 additions and 75 deletions

View file

@ -1,6 +1,5 @@
pixel_bugreport(dump_storage)
allow dump_storage vendor_toolbox_exec:file execute_no_trans;
allow dump_storage sysfs_scsi_devices_0000:dir r_dir_perms;
allow dump_storage sysfs_scsi_devices_0000:file r_file_perms;

View file

@ -1 +1 @@
/vendor/bin/dump/dump_storage\.sh u:object_r:dump_storage_exec:s0
/vendor/bin/dump/dump_storage u:object_r:dump_storage_exec:s0