Fix memtrack selinux denials
-Ensure entries in /sys/kernel/debug/kgsl/proc are labelled correctly
as debugfs_kgsl.
-Allow system_server to read files in debugfs_kgsl, so memtrack can
work in passthrough mode.
-Allow memtrack to read files in the surfaceflinger domain so it can
check whether processes are surfaceflinger.
Bug: 34707950
Test: Run dumpsys meminfo -a "pid" in binderized and passthrough mode;
check for denials and correct accounting of graphics memory usage.
Signed-off-by: Connor O'Brien <connoro@google.com>
Merged-In: I99f00ddff11136a013ab40f4b6c59e711aa87596
Change-Id: I99f00ddff11136a013ab40f4b6c59e711aa87596
(cherry-picked from commit 8a3e7ec66ea1bef113d30a9d836080dbef478531)
4 files changed