display-dump: sepolicy for new secondary display dump

Bug: 376426334
Test: adb bugreport
Test: adb shell /vendor/bin/dump/dump_*_display
Test: adb shell /vendor/bin/dump/dump_*_second_display
Flag: EXEMPT bugfix
Change-Id: I5186dfa9de755caa5023d159cb3cc1601268aa6a
This commit is contained in:
Hung-Yeh Lee 2024-11-21 13:40:38 +08:00
parent c980a0a5c1
commit 0dcf585cd6
2 changed files with 11 additions and 0 deletions

View file

@ -0,0 +1,9 @@
pixel_bugreport(dump_pixel_second_display)
allow dump_pixel_second_display sysfs_display:file r_file_perms;
userdebug_or_eng(`
allow dump_pixel_second_display vendor_dri_debugfs:dir r_dir_perms;
allow dump_pixel_second_display vendor_dri_debugfs:file r_file_perms;
')

View file

@ -0,0 +1,2 @@
/vendor/bin/dump/dump_pixel_second_display u:object_r:dump_pixel_second_display_exec:s0