Allow camera to notify traced of a notable event (marlin/sailfish)

Most apps already have the permission to act as full producers
(isolated_app, ephemeral_app, priv_app, untrusted_app_all), but
the camera doesn't inherit that as it runs in its own domain.

Granting only the socket (i.e. ipc) permission, as:
* only that is needed at the moment.
* granting the shmem/fd permissions would require a broader change, as traced_tmpfs is declared in private/.

Specific denial:
05-20 13:56:20.303  7751  7751 W trigger_perfett: type=1400 audit(0.0:19): avc: denied { write } for name="traced_producer" dev="tmpfs" ino=7061 scontext=u:r:google_camera_app:s0:c181,c256,c512,c768 tcontext=u:object_r:traced_producer_socket:s0 tclass=sock_file permissive=0 app=com.google.android.GoogleCamera

Bug: 130543265
Tested: extrapolating from the same fix on crosshatch, tested manually on blueline-userdebug.
Merged-In: Ie34f60051b33eb6e4d4e95d96988e4223e7dc0d4
Change-Id: Ie34f60051b33eb6e4d4e95d96988e4223e7dc0d4
(cherry picked from commit ef1060c885767ccd2b71e17eaf7c32f907537d15)
1 file changed
tree: 39006299bc93dc9b472c65eb44d1fd5cdbdef600
  1. bluetooth/
  2. camera/
  3. common/
  4. dataservices/
  5. dumpstate/
  6. factory-images_marlin/
  7. factory-images_sailfish/
  8. health/
  9. kernel-headers/
  10. libandroid/
  11. liblight/
  12. marlin/
  13. nfc/
  14. original-kernel-headers/
  15. overlay/
  16. permissions/
  17. power/
  18. radio/
  19. recovery/
  20. sailfish/
  21. seccomp_policy/
  22. self-extractors/
  23. self-extractors_sailfish/
  24. sensorhal/
  25. sepolicy/
  26. telephony/
  27. time-services/
  28. usb/
  29. vibrator/
  30. vndk/
  31. voice_processing/
  32. vr/
  33. aanc_tuning_mixer.txt
  34. Android.bp
  35. Android.mk
  36. AndroidProducts.mk
  37. aosp_marlin.mk
  38. aosp_sailfish.mk
  39. audio_effects.xml
  40. audio_output_policy.conf
  41. audio_platform_info.xml
  42. audio_platform_info_tasha_marlin.xml
  43. audio_platform_info_tasha_sailfish.xml
  44. audio_platform_info_tasha_t50.xml
  45. audio_policy_configuration.xml
  46. audio_policy_configuration_bluetooth_legacy_hal.xml
  47. audio_policy_volumes_drc.xml
  48. charger.fstab.qcom
  49. CleanSpec.mk
  50. compatibility_matrix.xml
  51. config.fs
  52. default-permissions.xml
  53. device-common.mk
  54. device-marlin.mk
  55. device-sailfish.mk
  56. device_framework_matrix.xml
  57. egl.cfg
  58. fstab.common
  59. gpio-keys.kl
  60. gps.conf
  61. init.common.diag.rc.user
  62. init.common.diag.rc.userdebug
  63. init.common.nanohub.rc
  64. init.common.rc
  65. init.common.usb.rc
  66. init.foreground.sh
  67. init.mid.sh
  68. init.power.sh
  69. init.qcom.devstart.sh
  70. init.qcom.qseecomd.sh
  71. init.radio.sh
  72. init.recovery.common.rc
  73. manifest.xml
  74. media_codecs.xml
  75. media_codecs_performance.xml
  76. media_profiles_V1_0.xml
  77. mixer_paths.xml
  78. mixer_paths_tasha_t50.xml
  79. msm_irqbalance.conf
  80. p2p_supplicant_overlay.conf
  81. qpnp_pon.kl
  82. qti_whitelist.xml
  83. recovery.wipe.common
  84. sec_config
  85. sound_trigger_mixer_paths.xml
  86. sound_trigger_mixer_paths_tasha_t50.xml
  87. sound_trigger_platform_info.xml
  88. synaptics_dsx.kl
  89. synaptics_dsxv26.idc
  90. synaptics_rmi4_i2c.kl
  91. system.prop
  92. thermal-engine-marlin-vr.conf
  93. thermal-engine-marlin.conf
  94. thermal_info_config.json
  95. ueventd.common.rc
  96. uinput-fpc.idc
  97. uinput-fpc.kl
  98. vold.fstab
  99. WCNSS_cfg.dat
  100. WCNSS_qcom_cfg.ini
  101. WCNSS_qcom_wlan_nv.bin
  102. wpa_supplicant_overlay.conf
  103. wpa_supplicant_wcn.conf