summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDilip Gudlur <dgudlur@codeaurora.org>2014-12-27 23:42:59 -0800
committerSteve Kondik <steve@cyngn.com>2015-01-15 18:14:59 -0800
commit46b55b9d66f311f63ac3b8310ccb1843b271e796 (patch)
treed64d78a9b72aef8946a9a0f454739d533aef94a5
parent9e6e6b745bd82cea0bac7efe149fa6c579b58f61 (diff)
downloadandroid_device_qcom_sepolicy-46b55b9d66f311f63ac3b8310ccb1843b271e796.tar.gz
android_device_qcom_sepolicy-46b55b9d66f311f63ac3b8310ccb1843b271e796.tar.bz2
android_device_qcom_sepolicy-46b55b9d66f311f63ac3b8310ccb1843b271e796.zip
SEAndroid: Add sepolicy for surfaceflinger
Add perfd permissions for surfaceflinger. Change-Id: I24844c687457159b7b1eb0559a7469a043b4c60b
-rw-r--r--common/surfaceflinger.te5
1 files changed, 5 insertions, 0 deletions
diff --git a/common/surfaceflinger.te b/common/surfaceflinger.te
index 854ff8c7..4413f371 100644
--- a/common/surfaceflinger.te
+++ b/common/surfaceflinger.te
@@ -6,3 +6,8 @@ r_dir_file(surfaceflinger, mm-pp-daemon)
binder_call(surfaceflinger, location)
binder_call(surfaceflinger, tee)
+
+# access to perflock
+allow surfaceflinger mpctl_socket:dir r_dir_perms;
+unix_socket_send(surfaceflinger, mpctl, perfd)
+unix_socket_connect(surfaceflinger, mpctl, perfd)