summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Bestas <mkbestas@lineageos.org>2018-04-28 22:10:40 +0300
committerMichael Bestas <mkbestas@lineageos.org>2018-04-30 19:32:03 +0300
commit2714c02d2e7fd2edc5fa4135457cd1bdf021c0b9 (patch)
tree250b07fc3424ea6ba953e27a6243e21b26d56610
parentb98aaace30213fd48f01cc498e04ec2ca06d670d (diff)
downloadandroid_device_qcom_sepolicy-2714c02d2e7fd2edc5fa4135457cd1bdf021c0b9.tar.gz
android_device_qcom_sepolicy-2714c02d2e7fd2edc5fa4135457cd1bdf021c0b9.tar.bz2
android_device_qcom_sepolicy-2714c02d2e7fd2edc5fa4135457cd1bdf021c0b9.zip
legacy: Fix more msm8916 perfd denials
Change-Id: If5cd58caad0c4f084764f21ab1fbb5c5b11be371
-rw-r--r--legacy-common/cameraserver.te2
-rw-r--r--legacy-common/mediacodec.te2
2 files changed, 4 insertions, 0 deletions
diff --git a/legacy-common/cameraserver.te b/legacy-common/cameraserver.te
index 8eb8d59f..5ea63aef 100644
--- a/legacy-common/cameraserver.te
+++ b/legacy-common/cameraserver.te
@@ -1,5 +1,7 @@
allow cameraserver mm-qcamerad:unix_dgram_socket sendto;
+allow cameraserver mpctl_socket:dir search;
+
unix_socket_connect(cameraserver, mpctl, perfd)
unix_socket_connect(cameraserver, thermal, thermal-engine)
unix_socket_connect(cameraserver, sensors, sensors)
diff --git a/legacy-common/mediacodec.te b/legacy-common/mediacodec.te
index b64f06ee..7753376d 100644
--- a/legacy-common/mediacodec.te
+++ b/legacy-common/mediacodec.te
@@ -1,2 +1,4 @@
# Allow binder communication
allow mediacodec audioserver_service:service_manager find;
+
+allow mediacodec mpctl_socket:dir search;