From 4eddb3e3d212475f485702d001de7d277ff89228 Mon Sep 17 00:00:00 2001
From: Josh Gao <jmgao@google.com>
Date: Fri, 20 Jan 2017 11:22:15 -0800
Subject: [PATCH] tombstoned: allow append to anr_data_file.

Fix the following denial:

tombstoned: type=1400 audit(0.0:563): avc: denied { append } for path="/data/anr/traces.txt" dev="sda35" ino=679941 scontext=u:r:tombstoned:s0 tcontext=u:object_r:anr_data_file:s0 tclass=file permissive=0

Bug: http://b/34472671
Test: mma
Change-Id: Iab5fbaf50888aa0f195841cb7e718ff393e526dd
---
 public/tombstoned.te | 1 +
 1 file changed, 1 insertion(+)

diff --git a/public/tombstoned.te b/public/tombstoned.te
index c830d93cb..840c026c6 100644
--- a/public/tombstoned.te
+++ b/public/tombstoned.te
@@ -10,3 +10,4 @@ allow tombstoned domain:dir r_dir_perms;
 allow tombstoned domain:file r_file_perms;
 allow tombstoned tombstone_data_file:dir rw_dir_perms;
 allow tombstoned tombstone_data_file:file create_file_perms;
+allow tombstoned anr_data_file:file { getattr append };
-- 
GitLab