aboutsummaryrefslogtreecommitdiffstats
path: root/shell.te
diff options
context:
space:
mode:
authorYongqin Liu <yongqin.liu@linaro.org>2014-12-05 13:40:22 +0800
committerYongqin Liu <yongqin.liu@linaro.org>2015-02-24 01:02:20 +0800
commitcc38e6d1a4c39a0bdffdb51811f9d6b32fdaa7de (patch)
tree4ba575cbf5e65936854aa8bb1e99202b43e4b29f /shell.te
parent7d1b6c87924a74e2163763a659fcca870a672e3c (diff)
downloadandroid_external_sepolicy-cc38e6d1a4c39a0bdffdb51811f9d6b32fdaa7de.tar.gz
android_external_sepolicy-cc38e6d1a4c39a0bdffdb51811f9d6b32fdaa7de.tar.bz2
android_external_sepolicy-cc38e6d1a4c39a0bdffdb51811f9d6b32fdaa7de.zip
bootchart: add policy rules for bootchart
allow the bootchart to create dir and files at init, also allow user to create the stop and start file under /data/bootchart directory to start and stop bootchart Change-Id: Icfee8dcd17366383eef00fbe3139744bf4427a6b Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
Diffstat (limited to 'shell.te')
-rw-r--r--shell.te6
1 files changed, 6 insertions, 0 deletions
diff --git a/shell.te b/shell.te
index 6af3717..d31a496 100644
--- a/shell.te
+++ b/shell.te
@@ -64,3 +64,9 @@ allow shell service_manager_type:service_manager find;
# allow shell to look through /proc/ for ps, top
allow shell domain:dir { search open read getattr };
allow shell domain:{ file lnk_file } { open read getattr };
+
+# enable shell domain to read/write files/dirs for bootchart data
+# User will creates the start and stop file via adb shell
+# and read other files created by init process under /data/bootchart
+allow shell bootchart_data_file:dir rw_dir_perms;
+allow shell bootchart_data_file:file create_file_perms;