Cameraserver: Allow camera to switch thread scheduling policy
Allow camera server to switch the scheduling policy
for certain time critical threads.
Bug: 323292530
Test: Manual using camera application,
Camera CTS
Merged-In: Ib665009c095efc21f65b1d8b3ddd9c2528c1c794
Change-Id: Ib665009c095efc21f65b1d8b3ddd9c2528c1c794
diff --git a/public/cameraserver.te b/public/cameraserver.te
index 8a4016c..07b7c33 100644
--- a/public/cameraserver.te
+++ b/public/cameraserver.te
@@ -70,6 +70,9 @@
allow cameraserver shell:unix_stream_socket { read write };
allow cameraserver shell:fifo_file { read write };
+# allow self to set SCHED_FIFO
+allow cameraserver self:global_capability_class_set sys_nice;
+
# Allow to talk with media codec
allow cameraserver mediametrics_service:service_manager find;
hal_client_domain(cameraserver, hal_codec2)