aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Vander Stoep <jeffv@google.com>2015-07-10 11:13:16 -0700
committerJeff Vander Stoep <jeffv@google.com>2015-07-10 15:12:07 -0700
commit099d63290bc03dd5b98041bc93f105f1342b3596 (patch)
tree2d220d13680fe75814d10b1c87f503236f38cce7
parent24f3bcdb8fc6e6490438f496c1bf1d45b9caeec9 (diff)
downloadsepolicy-099d63290bc03dd5b98041bc93f105f1342b3596.tar.gz
allow procrank to write to bug report
avc: denied { write } for pid=14742 comm="procrank" path="/data/data/com.android.shell/files/bugreports/bugreport-2015-07-02-22-17-43.txt.tmp" dev="dm-2" ino=44479 scontext=u:r:procrank:s0 tcontext=u:object_r:shell_data_file:s0 tclass=file permissive=0 (cherry picked from af16c40ce61b9e2382a6a235dbbe528cf681e5bc) Bug: 22400298 Change-Id: Ibf5dcf9f7edf416e977577afc32bbbef62e50974
-rw-r--r--procrank.te2
1 files changed, 2 insertions, 0 deletions
diff --git a/procrank.te b/procrank.te
index 680d549..1aaaad0 100644
--- a/procrank.te
+++ b/procrank.te
@@ -12,4 +12,6 @@ userdebug_or_eng(`
r_dir_file(procrank, domain)
allow procrank { shell dumpstate }:fd use;
allow procrank adbd:process sigchld;
+ # allow procrank write to bugreport.
+ allow procrank shell_data_file:file w_file_perms;
')