servicemanager: add dump fd permissions

Getting hit when bugreport tries to dump this.

Fixes: 155835324
Test: adb bugreport, check denials
(cherry picked from commit b0fb5b44f8)
Merged-In: I189aeba2d3a5dfafccb8f8a4db224db71820faca
Change-Id: Ic044f245d8fee9f7a49cf23f76961f7dedbb3d8b
This commit is contained in:
Steven Moreland 2020-05-08 14:28:54 -07:00
parent 554bcfe5e8
commit d895b40f2e
2 changed files with 4 additions and 0 deletions

View file

@ -22,6 +22,8 @@ allow servicemanager service_contexts_file:file r_file_perms;
not_full_treble(`allow servicemanager nonplat_service_contexts_file:file r_file_perms;')
add_service(servicemanager, service_manager_service)
allow servicemanager dumpstate:fd use;
allow servicemanager dumpstate:fifo_file write;
# Check SELinux permissions.
selinux_check_access(servicemanager)

View file

@ -22,6 +22,8 @@ allow servicemanager service_contexts_file:file r_file_perms;
not_full_treble(`allow servicemanager nonplat_service_contexts_file:file r_file_perms;')
add_service(servicemanager, service_manager_service)
allow servicemanager dumpstate:fd use;
allow servicemanager dumpstate:fifo_file write;
# Check SELinux permissions.
selinux_check_access(servicemanager)