display: add pixel display trace to bugreport
AVC error log justifications: [ 1198.907014] type=1400 audit(1728067746.876:2074): avc: denied { search } for comm="cat" name="instances" dev="tracefs" ino=4194 scontext=u:r:dump_display_userdebug:s0 tcontext=u:object_r:debugfs_tracing_instances:s0 tclass=dir permissive=1 [ 1198.908565] type=1400 audit(1728067746.876:2075): avc: denied { read } for comm="cat" name="trace" dev="tracefs" ino=167692 scontext=u:r:dump_display_userdebug:s0 tcontext=u:object_r:debugfs_tracing_instances:s0 tclass=file permissive=1 [ 1198.909716] type=1400 audit(1728067746.876:2076): avc: denied { open } for comm="cat" path="/sys/kernel/tracing/instances/pixel-display/trace" dev="tracefs" ino=167692 scontext=u:r:dump_display_userdebug:s0 tcontext=u:object_r:debugfs_tracing_instances:s0 tclass=file permissive=1 Bug: 369099258 Test: pixel display trace visible in bugreport Flag: EXEMPT bugfix Change-Id: I53f9340aee155d1ff0d0c0bc2db45e6bd77f342a Signed-off-by: Taylor Nelms <tknelms@google.com>
This commit is contained in:
parent
c398fe11da
commit
0379e1a2b8
3 changed files with 8 additions and 0 deletions
|
@ -1,4 +1,8 @@
|
|||
#!/vendor/bin/sh
|
||||
display_trace_path="/sys/kernel/tracing/instances/pixel-display/trace"
|
||||
echo "------ Display Trace ($display_trace_path)------"
|
||||
cat $display_trace_path
|
||||
|
||||
echo "------ HWC Fence States ------"
|
||||
for f in $(ls /data/vendor/log/hwc/*_hwc_fence_state*.txt)
|
||||
do
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# Display (dump for bugreport)
|
||||
pixel_bugreport(dump_display)
|
||||
|
||||
allow dump_display sysfs_display:file r_file_perms;
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# Display eng/userdebug (dump for bugreport)
|
||||
pixel_bugreport(dump_display_userdebug)
|
||||
|
||||
userdebug_or_eng(`
|
||||
|
@ -5,4 +6,6 @@ userdebug_or_eng(`
|
|||
allow dump_display_userdebug vendor_log_file:dir search;
|
||||
allow dump_display_userdebug vendor_hwc_log_file:dir r_dir_perms;
|
||||
allow dump_display_userdebug vendor_hwc_log_file:file r_file_perms;
|
||||
allow dump_display_userdebug debugfs_tracing_instances:dir search;
|
||||
allow dump_display_userdebug debugfs_tracing_instances:file r_file_perms;
|
||||
')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue