summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2014-12-04 14:45:18 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2014-12-04 14:45:18 -0800
commitfbc4f83670ee249790928891461fd85b48a7d7fc (patch)
tree1a22b1f6ae2416d3c26342a32049bfaecf24f8c0
parentcc1f328786e8e1c2b1335dc2d4b8f98bcb1f61ad (diff)
parent3480506729a6b8fc8dab5c8bd827cd4e1c8318f0 (diff)
downloadandroid_device_qcom_sepolicy-fbc4f83670ee249790928891461fd85b48a7d7fc.tar.gz
android_device_qcom_sepolicy-fbc4f83670ee249790928891461fd85b48a7d7fc.tar.bz2
android_device_qcom_sepolicy-fbc4f83670ee249790928891461fd85b48a7d7fc.zip
Merge "Seandroid: Allow mm-pp-deamon access to sensor device files"
-rwxr-xr-xcommon/mm-pp-daemon.te5
1 files changed, 5 insertions, 0 deletions
diff --git a/common/mm-pp-daemon.te b/common/mm-pp-daemon.te
index 6c9ad161..f8edeb54 100755
--- a/common/mm-pp-daemon.te
+++ b/common/mm-pp-daemon.te
@@ -17,6 +17,11 @@ allow mm-pp-daemon persist_file:file create_file_perms;
allow mm-pp-daemon display_config:dir create_dir_perms;
allow mm-pp-daemon display_config:file create_file_perms;
+# Allow read to sensor device and read/write to sensor socket
+allow mm-pp-daemon sensors_device:chr_file r_file_perms;
+allow mm-pp-daemon sensors_socket:sock_file rw_file_perms;
+allow mm-pp-daemon sensors:unix_stream_socket connectto;
+
allow mm-pp-daemon system_prop:property_service set;
userdebug_or_eng(`