From 98b7ab539621f3b26846fd19b7c3bcde2c522c8f Mon Sep 17 00:00:00 2001 From: Nick Kralevich <nnk@google.com> Date: Sun, 8 Jun 2014 13:47:33 -0700 Subject: [PATCH] allow adb push to create directories. Addresses the following denial: type=1400 audit(0.0:24): avc: denied { create } for comm="adbd" name="md5sum" scontext=u:r:adbd:s0 tcontext=u:object_r:shell_data_file:s0 tclass=dir Change-Id: Ibb1708af85b2235cbad2794993cfeef896f8db4a --- adbd.te | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adbd.te b/adbd.te index d287934a5..705f5f0a0 100644 --- a/adbd.te +++ b/adbd.te @@ -32,7 +32,7 @@ allow adbd functionfs:file rw_file_perms; allow adbd devpts:chr_file rw_file_perms; # adb push/pull /data/local/tmp. -allow adbd shell_data_file:dir rw_dir_perms; +allow adbd shell_data_file:dir create_dir_perms; allow adbd shell_data_file:file create_file_perms; # adb push/pull sdcard. -- GitLab