From bd050a8ec32e9e7b0ac7cbee9ba7cf224f69acc9 Mon Sep 17 00:00:00 2001
From: Patrick Tjin <pattjin@google.com>
Date: Tue, 9 Dec 2014 12:43:26 -0800
Subject: [PATCH] Allow recovery to access kmsg for log retrieval

Bug: 18642766

Change-Id: I97d6ab0b76b69d99dcc1928232c8961437e1e68c
Signed-off-by: Patrick Tjin <pattjin@google.com>
---
 recovery.te | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/recovery.te b/recovery.te
index 204c096a3..821da01da 100644
--- a/recovery.te
+++ b/recovery.te
@@ -50,6 +50,8 @@ recovery_only(`
   # TODO: create more specific label?
   allow recovery sysfs:file w_file_perms;
 
+  access_kmsg(recovery)
+
   # Access /dev/android_adb or /dev/usb-ffs/adb/ep0
   allow recovery adb_device:chr_file rw_file_perms;
   allow recovery functionfs:dir search;
-- 
GitLab