Use virtio-console for Keymaster and Gatekeeper instead of vsock.
This change preserves all features but takes a hit to throughput. Some
of the more demanding Keystore CTS tests now cause hiccups in the test
runner, failing the demanding test and the next ~70 that came afterward.
Test: atest VtsHalGatekeeperV1_0TargetTest
Test: atest CtsKeystoreTestCases
Bug: 155695742
Change-Id: Idd037f23afb426d788c0b422741a0ffd83fd301f
diff --git a/shared/sepolicy/vendor/init.te b/shared/sepolicy/vendor/init.te
index e56edfd..f11adf4 100644
--- a/shared/sepolicy/vendor/init.te
+++ b/shared/sepolicy/vendor/init.te
@@ -21,3 +21,6 @@
# permit mount of virtiofs on /mnt/vendor/shared
allow init mnt_vendor_file:dir mounton;
+
+allow init keymaster_device:chr_file rw_file_perms;
+allow init gatekeeper_device:chr_file rw_file_perms;