summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYongqin Liu <yongqin.liu@linaro.org>2014-12-22 05:45:25 +0000
committerYongqin Liu <yongqin.liu@linaro.org>2014-12-22 05:58:06 +0000
commit42647bb87b8b64255cfa27ec0988dd7d41cff5b6 (patch)
tree429784500e7cc8918decdc1505e99369b2538906
parenta4776989cfb7e509ee8519beb3bed4b38e904834 (diff)
downloadcommon-42647bb87b8b64255cfa27ec0988dd7d41cff5b6.tar.gz
add hack about mkshrc
since lava will update mkshrc to set the boot prompt, and this causes the security context information of /system/etc/mkshrc lost, and the console service is not able to read the content of mkshrc file, at last it cause the boot promopt can not be set correctly. The bug is reported here: https://bugs.linaro.org/show_bug.cgi?id=548 And this change is to give the shell domain the permission to read the content of the mkshrc file updated by lava. This change should be remove after the above bug fixed. Change-Id: I8819655276b07ce7660d4a567f10f76b51710a05 Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
-rw-r--r--sepolicy/shell.te3
1 files changed, 3 insertions, 0 deletions
diff --git a/sepolicy/shell.te b/sepolicy/shell.te
index 4069fc1..249d3af 100644
--- a/sepolicy/shell.te
+++ b/sepolicy/shell.te
@@ -9,3 +9,6 @@ allow shell system_prop:property_service set;
# hack for running start adbd/stop adbd on console session
allow shell ctl_default_prop:property_service set;
+
+# hack for reading the mkshrc file after lava modified
+allow shell unlabeled:file r_file_perms;