From 3480506729a6b8fc8dab5c8bd827cd4e1c8318f0 Mon Sep 17 00:00:00 2001 From: Nirmal Abraham Date: Mon, 1 Dec 2014 17:20:56 +0530 Subject: 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 --- common/mm-pp-daemon.te | 5 +++++ 1 file changed, 5 insertions(+) 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(` -- cgit v1.2.3