diff options
author | Nirmal Abraham <nabrah@codeaurora.org> | 2014-12-01 17:20:56 +0530 |
---|---|---|
committer | Nirmal Abraham <nabrah@codeaurora.org> | 2014-12-04 08:58:32 +0530 |
commit | 3480506729a6b8fc8dab5c8bd827cd4e1c8318f0 (patch) | |
tree | 41b2144e668dc16215f88fc67dfe63b54dd1a2bb | |
parent | 05917ea00dd95ed8ff8344f3bd4da50913dc77e8 (diff) | |
download | android_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
-rwxr-xr-x | common/mm-pp-daemon.te | 5 |
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(` |