From 59444368da2fbe79ebc1b346eea9797f67c66566 Mon Sep 17 00:00:00 2001
From: Nick Kralevich <nnk@google.com>
Date: Thu, 27 Jun 2013 10:48:36 -0700
Subject: [PATCH] Add "shell" to seapp_contexts

In the process of taking a bugreport, "dumpstate -B" will instruct
zygote to fire up com.android.shell, which runs as UID=2000.
This transition was not included in seapp_contexts, so zygote
didn't know how to properly set the context for the shell user.

Add an entry to allow zygote to know what to do with UID=2000
requests.

Bug: 9588981
Change-Id: I2e726be8d58437ef1de3bcbad3b897a97ed18e22
---
 seapp_contexts | 1 +
 1 file changed, 1 insertion(+)

diff --git a/seapp_contexts b/seapp_contexts
index 491c9fd90..41d3dd845 100644
--- a/seapp_contexts
+++ b/seapp_contexts
@@ -43,3 +43,4 @@ user=_app seinfo=shared domain=shared_app type=platform_app_data_file
 user=_app seinfo=media domain=media_app type=platform_app_data_file
 user=_app seinfo=release domain=release_app type=platform_app_data_file
 user=_isolated domain=isolated_app
+user=shell domain=shell type=shell_data_file
-- 
GitLab