summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorNirmal Abraham <nabrah@codeaurora.org>2014-12-01 17:20:56 +0530
committerNirmal Abraham <nabrah@codeaurora.org>2014-12-04 08:58:32 +0530
commit3480506729a6b8fc8dab5c8bd827cd4e1c8318f0 (patch)
tree41b2144e668dc16215f88fc67dfe63b54dd1a2bb /common
parent05917ea00dd95ed8ff8344f3bd4da50913dc77e8 (diff)
downloadandroid_device_qcom_sepolicy-3480506729a6b8fc8dab5c8bd827cd4e1c8318f0.tar.gz
android_device_qcom_sepolicy-3480506729a6b8fc8dab5c8bd827cd4e1c8318f0.tar.bz2
android_device_qcom_sepolicy-3480506729a6b8fc8dab5c8bd827cd4e1c8318f0.zip
Seandroid: Allow mm-pp-deamon access to sensor device files
Modify mm-pp-deaemon policy file to enable access to sensors to support features like AD (Assertive Display). 1. Allow read access to sensor_device. 2. Allow read/write access to sensor_socket. 3. Allow 'connecto' socket call to sensors stream socket. Change-Id: I343776eb788f39f95f1202463b5d801fb9103571
Diffstat (limited to 'common')
-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(`