Merge "Allow dumpsys meminfo to print out DMA-BUF statistics" am: 83d6f96fdc am: 099e2f1a09

Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/1582856

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I01b78ac46cf7b16d5c2567b3e02ded02ccb333ec
This commit is contained in:
Treehugger Robot 2021-02-12 00:55:43 +00:00 committed by Automerger Merge Worker
commit e1a1ccbfef

View file

@ -192,6 +192,14 @@ allow system_server sysfs_ion:file r_file_perms;
# Read /sys/kernel/dma_heap/*. # Read /sys/kernel/dma_heap/*.
allow system_server sysfs_dma_heap:file r_file_perms; allow system_server sysfs_dma_heap:file r_file_perms;
# Allow reading DMA-BUF sysfs stats from /sys/kernel/dmabuf.
allow system_server sysfs_dmabuf_stats:dir r_dir_perms;
allow system_server sysfs_dmabuf_stats:file r_file_perms;
# Allow ActivityManager to look at the list of DMA-BUF heaps from /dev/dma_heap
# for dumpsys meminfo
allow system_server dmabuf_heap_device:dir r_dir_perms;
# The DhcpClient and WifiWatchdog use packet_sockets # The DhcpClient and WifiWatchdog use packet_sockets
allow system_server self:packet_socket create_socket_perms_no_ioctl; allow system_server self:packet_socket create_socket_perms_no_ioctl;