aboutsummaryrefslogtreecommitdiffstats
path: root/shell.te
diff options
context:
space:
mode:
authorMark Salyzyn <salyzyn@google.com>2014-12-15 12:01:35 -0800
committerMark Salyzyn <salyzyn@google.com>2015-01-14 12:34:20 -0800
commit34d32ea1647655ee8dbf4faa19992a8a625c40d9 (patch)
tree06905de94e52f01e9ab7be24e050a607f9500d53 /shell.te
parent3b0988c59b3bd72113f88e482b0aa8f443d19074 (diff)
downloadandroid_external_sepolicy-34d32ea1647655ee8dbf4faa19992a8a625c40d9.tar.gz
android_external_sepolicy-34d32ea1647655ee8dbf4faa19992a8a625c40d9.tar.bz2
android_external_sepolicy-34d32ea1647655ee8dbf4faa19992a8a625c40d9.zip
selinux: add pstore
Used to record the Android log messages, then on reboot provide a means to triage user-space actitivies leading up to a panic. A companion to the pstore console logs. Change-Id: I9b94ee3d5e94e0c4590ba8453b4ac1ebdfc7603f
Diffstat (limited to 'shell.te')
-rw-r--r--shell.te5
1 files changed, 4 insertions, 1 deletions
diff --git a/shell.te b/shell.te
index 3e30adc..a69d475 100644
--- a/shell.te
+++ b/shell.te
@@ -9,9 +9,12 @@ net_domain(shell)
# XXX Transition into its own domain?
app_domain(shell)
-# logd access
+# logcat
read_logd(shell)
control_logd(shell)
+# logcat -L (directly, or via dumpstate)
+allow shell pstorefs:dir search;
+allow shell pstorefs:file r_file_perms;
# read files in /data/anr
allow shell anr_data_file:dir r_dir_perms;