Allow update engine to access to metadata_file.

With virtual-ab feature, update engine needs access
to metadata_file, allow the same.

Change-Id: Ia366da18517db28f4404f2605987e1b36906a83a
diff --git a/generic/vendor/kona/update_engine_common.te b/generic/vendor/kona/update_engine_common.te
index 315275b..fc4a39a 100644
--- a/generic/vendor/kona/update_engine_common.te
+++ b/generic/vendor/kona/update_engine_common.te
@@ -37,4 +37,5 @@
 }:blk_file rw_file_perms;
 
 allow update_engine_common tmpfs:lnk_file r_file_perms;
+allow update_engine_common metadata_file:dir search;
 
diff --git a/generic/vendor/lito/update_engine_common.te b/generic/vendor/lito/update_engine_common.te
index 315275b..e82e43c 100644
--- a/generic/vendor/lito/update_engine_common.te
+++ b/generic/vendor/lito/update_engine_common.te
@@ -37,4 +37,4 @@
 }:blk_file rw_file_perms;
 
 allow update_engine_common tmpfs:lnk_file r_file_perms;
-
+allow update_engine_common metadata_file:dir search;
diff --git a/generic/vendor/msmnile/update_engine_common.te b/generic/vendor/msmnile/update_engine_common.te
index e9d003d..056375f 100644
--- a/generic/vendor/msmnile/update_engine_common.te
+++ b/generic/vendor/msmnile/update_engine_common.te
@@ -37,4 +37,5 @@
 }:blk_file rw_file_perms;
 
 allow update_engine_common tmpfs:lnk_file r_file_perms;
+allow update_engine_common metadata_file:dir search;
 
diff --git a/legacy/vendor/sdm710/update_engine_common.te b/legacy/vendor/sdm710/update_engine_common.te
index 12e07d4..97d0b28 100644
--- a/legacy/vendor/sdm710/update_engine_common.te
+++ b/legacy/vendor/sdm710/update_engine_common.te
@@ -40,3 +40,4 @@
 }:blk_file rw_file_perms;
 
 allow update_engine_common tmpfs:lnk_file r_file_perms;
+allow update_engine_common metadata_file:dir search;
diff --git a/legacy/vendor/sdm845/update_engine_common.te b/legacy/vendor/sdm845/update_engine_common.te
index 25bc69e..6d71e11 100644
--- a/legacy/vendor/sdm845/update_engine_common.te
+++ b/legacy/vendor/sdm845/update_engine_common.te
@@ -37,3 +37,4 @@
 }:blk_file rw_file_perms;
 
 allow update_engine_common tmpfs:lnk_file r_file_perms;
+allow update_engine_common metadata_file:dir search;
diff --git a/qva/vendor/msmsteppe/update_engine_common.te b/qva/vendor/msmsteppe/update_engine_common.te
index 607ee8c..57300bd 100644
--- a/qva/vendor/msmsteppe/update_engine_common.te
+++ b/qva/vendor/msmsteppe/update_engine_common.te
@@ -36,3 +36,4 @@
         recovery_block_device
 }:blk_file rw_file_perms;
 allow update_engine_common tmpfs:lnk_file r_file_perms;
+allow update_engine_common metadata_file:dir search;
diff --git a/qva/vendor/trinket/update_engine_common.te b/qva/vendor/trinket/update_engine_common.te
index 629df5b..907b415 100644
--- a/qva/vendor/trinket/update_engine_common.te
+++ b/qva/vendor/trinket/update_engine_common.te
@@ -34,3 +34,4 @@
         vendor_ssd_block_device
         vendor_modem_block_device
 }:blk_file rw_file_perms;
+allow update_engine_common metadata_file:dir search;