dumpstate/incident: Fix avc errors

avc: denied { append } for path="/storage/emulated/0/Android/data/com.android.pixellogger/files/bugreport-oriole-MASTER-2021-04-19-14-57-22.zip" dev="dm-7" ino=35424 scontext=u:r:dumpstate:s0 tcontext=u:object_r:media_rw_data_file:s0:c28,c257,c512,c768 tclass=file
avc: denied { use } for path="/storage/emulated/0/Android/data/com.android.pixellogger/files/bugreport-oriole-MASTER-2021-04-19-14-57-22.zip" dev="dm-7" ino=35424 scontext=u:r:incident:s0 tcontext=u:r:logger_app:s0:c28,c257,c512,c768 tclass=fd
avc: denied { append } for path="/storage/emulated/0/Android/data/com.android.pixellogger/files/bugreport-oriole-MASTER-2021-04-19-16-30-05.zip" dev="dm-7" ino=12639 scontext=u:r:incident:s0 tcontext=u:object_r:media_rw_data_file:s0:c30,c257,c512,c768 tclass=file

Bug: 178744858
Change-Id: I07eb1f4abf6cb9b399c773854ca6f47fcd5e2f37
This commit is contained in:
SalmaxChang 2021-04-16 15:24:07 +08:00 committed by Salmax Chang
parent 96ed3bb51c
commit 1b17b0fbaa
2 changed files with 5 additions and 0 deletions

View file

@ -3,6 +3,7 @@ dump_hal(hal_graphics_composer)
userdebug_or_eng(` userdebug_or_eng(`
allow dumpstate vendor_dmabuf_debugfs:file r_file_perms; allow dumpstate vendor_dmabuf_debugfs:file r_file_perms;
allow dumpstate media_rw_data_file:file append;
') ')
allow dumpstate sysfs_scsi_devices_0000:file r_file_perms; allow dumpstate sysfs_scsi_devices_0000:file r_file_perms;

4
whitechapel/vendor/google/incident.te vendored Normal file
View file

@ -0,0 +1,4 @@
userdebug_or_eng(`
allow incident logger_app:fd use;
allow incident media_rw_data_file:file append;
')