DO NOT MERGE Fix denials seen during device upgrade.

Fixes:
denied  { relabelto } for  pid=721 comm="PackageManager" name="vmdl-112554949.tmp" dev="mmcblk0p30" ino=712747 scontext=u:r:system:s0 tcontext=u:object_r:apk_private_tmp_file:s0 tclass=file
denied  { create } for  pid=240 comm="vold" name="smdl2tmp1.asec" scontext=u:r:vold:s0 tcontext=u:object_r:system_data_file:s0 tclass=file

Bug: 11149726
Change-Id: Iddc7592c757375a961f0d392c27622073c141b36
diff --git a/system.te b/system.te
index 24d4a67..795c0b8 100644
--- a/system.te
+++ b/system.te
@@ -16,3 +16,4 @@
 allow system cache_backup_file:dir relabelto;
 allow system apk_data_file:file relabelto;
 allow system apk_tmp_file:file relabelto;
+allow system apk_private_tmp_file:file relabelto;
diff --git a/vold.te b/vold.te
index 25e586a..1fce7bd 100644
--- a/vold.te
+++ b/vold.te
@@ -50,6 +50,7 @@
 
 # Create and mount on /data/tmp_mnt.
 allow vold system_data_file:dir { create rw_dir_perms mounton };
+allow vold system_data_file:file create_file_perms;
 
 # Set scheduling policy of kernel processes
 allow vold kernel:process setsched;