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
tree: 9a1f28666c8061c5445ee06a2ee843023e6df9a4
  1. bluetooth/
  2. common/
  3. dataservices/
  4. dumpstate/
  5. factory-images_marlin/
  6. factory-images_sailfish/
  7. kernel-headers/
  8. libandroid/
  9. liblight/
  10. location/
  11. marlin/
  12. nfc/
  13. original-kernel-headers/
  14. overlay/
  15. power/
  16. radio/
  17. recovery/
  18. sailfish/
  19. seccomp/
  20. self-extractors/
  21. self-extractors_sailfish/
  22. sensorhal/
  23. sepolicy/
  24. telephony/
  25. thermal/
  26. thermal-engine/
  27. time-services/
  28. voice_processing/
  29. vr/
  30. aanc_tuning_mixer.txt
  31. Android.mk
  32. AndroidProducts.mk
  33. aosp_marlin.mk
  34. aosp_sailfish.mk
  35. apns-full-conf.xml
  36. audio_effects.conf
  37. audio_output_policy.conf
  38. audio_platform_info.xml
  39. audio_platform_info_tasha_t50.xml
  40. audio_policy_configuration.xml
  41. audio_policy_volumes_drc.xml
  42. charger.fstab.qcom
  43. CleanSpec.mk
  44. default-permissions.xml
  45. device-common.mk
  46. device-marlin.mk
  47. device-sailfish.mk
  48. egl.cfg
  49. fstab.aosp_common
  50. fstab.common
  51. gpio-keys.kl
  52. gps.conf
  53. init.common.diag.rc.user
  54. init.common.diag.rc.userdebug
  55. init.common.nanohub.rc
  56. init.common.rc
  57. init.common.usb.rc
  58. init.foreground.sh
  59. init.mid.sh
  60. init.power.sh
  61. init.qcom.qseecomd.sh
  62. init.radio.sh
  63. init.recovery.common.rc
  64. listen_platform_info.xml
  65. media_codecs.xml
  66. media_codecs_performance.xml
  67. media_profiles.xml
  68. mixer_paths.xml
  69. mixer_paths_tasha_t50.xml
  70. msm_irqbalance.conf
  71. p2p_supplicant_overlay.conf
  72. preloads_copy.sh
  73. qpnp_pon.kl
  74. recovery.fstab
  75. recovery.wipe.common
  76. releasetools.py
  77. sec_config
  78. sound_trigger_mixer_paths.xml
  79. sound_trigger_mixer_paths_tasha_t50.xml
  80. sound_trigger_platform_info.xml
  81. spn-conf.xml
  82. synaptics_dsx.kl
  83. synaptics_dsxv26.idc
  84. synaptics_rmi4_i2c.kl
  85. system.prop
  86. thermal-engine-marlin.conf
  87. ueventd.common.rc
  88. uinput-fpc.idc
  89. uinput-fpc.kl
  90. vendorsetup.sh
  91. vold.fstab
  92. WCNSS_cfg.dat
  93. WCNSS_qcom_cfg.ini
  94. WCNSS_qcom_wlan_nv.bin
  95. wpa_supplicant_overlay.conf
  96. wpa_supplicant_wcn.conf