From b660916b0a8ca9604bf9d425f5e385aa13393a1f Mon Sep 17 00:00:00 2001
From: Stephen Smalley <sds@tycho.nsa.gov>
Date: Thu, 8 Mar 2012 11:17:45 -0500
Subject: [PATCH] Allow the shell to create files on the sdcard.

---
 shell.te | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/shell.te b/shell.te
index a0d02057a..0c67c4670 100644
--- a/shell.te
+++ b/shell.te
@@ -14,7 +14,7 @@ allow shell shell_data_file:file rx_file_perms;
 
 # Access sdcard.
 allow shell sdcard:dir rw_dir_perms;
-allow shell sdcard:file rw_file_perms;
+allow shell sdcard:file create_file_perms;
 
 r_dir_file(shell, apk_data_file)
 allow shell dalvikcache_data_file:file write;
-- 
GitLab