hal_camera: Allow writing dump info into pipes
So dumpsys media.camera can do hal dump without root.
Bug: 72261676
Change-Id: Ic7325418bc2ee5dbb005430135f1ccc88b418e8c
diff --git a/public/hal_camera.te b/public/hal_camera.te
index 8fe7442..43f74b4 100644
--- a/public/hal_camera.te
+++ b/public/hal_camera.te
@@ -18,6 +18,10 @@
allow hal_camera surfaceflinger:fd use;
allow hal_camera hal_allocator_server:fd use;
+# Needed to provide debug dump output via dumpsys' pipes.
+allow hal_camera shell:fd use;
+allow hal_camera shell:fifo_file write;
+
###
### neverallow rules
###