summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSatya Durga Srinivasu Prabhala <satyap@codeaurora.org>2014-11-25 12:30:04 -0800
committerRicardo Cerqueira <ricardo@cyngn.com>2014-12-29 16:16:32 +0000
commit0066d40fd35e6a351a621ccad38ec0a6ad640543 (patch)
tree5b564846dfcfcfe70f0f396eb563624d5409c6e0
parent6893e318ea87bd9690baa5b986dd9646aa71912d (diff)
downloadandroid_device_qcom_sepolicy-0066d40fd35e6a351a621ccad38ec0a6ad640543.tar.gz
android_device_qcom_sepolicy-0066d40fd35e6a351a621ccad38ec0a6ad640543.tar.bz2
android_device_qcom_sepolicy-0066d40fd35e6a351a621ccad38ec0a6ad640543.zip
sepolicy: allow system apps to access sensors settings file
system apps need to access sensors settings file in persist partition to enable or disable sensors in debug & eng builds. Change-Id: I2cd7ddface6cf7f21cd8b0294c71740945977cd9
-rw-r--r--common/system_app.te3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/system_app.te b/common/system_app.te
index 7e795045..38404108 100644
--- a/common/system_app.te
+++ b/common/system_app.te
@@ -19,6 +19,9 @@ allow system_app cne_service:service_manager add;
userdebug_or_eng(`
allow system_app debugfs:file r_file_perms;
allow system_app su:unix_dgram_socket sendto;
+ allow system_app persist_file:dir r_dir_perms;
+ allow system_app sensors_persist_file:dir r_dir_perms;
+ allow system_app sensors_persist_file:file rw_file_perms;
')
allow system_app cnd_data_file:dir w_dir_perms;
allow system_app cnd_data_file:file create_file_perms;