Add /dev/goldfish_address_space to goldfish
This is a memory sharing device between the host and the guest.
Bug: 116046430
Test: run emulator
Change-Id: Ib785ea7240fc1a156f8ccd57ef3bf4ebbeaeb59a
Signed-off-by: Roman Kiryanov <rkir@google.com>
diff --git a/sepolicy/common/file_contexts b/sepolicy/common/file_contexts
index 362dfc3..a3f08ad 100644
--- a/sepolicy/common/file_contexts
+++ b/sepolicy/common/file_contexts
@@ -12,6 +12,7 @@
/dev/goldfish_pipe u:object_r:qemu_device:s0
/dev/goldfish_sync u:object_r:qemu_device:s0
+/dev/goldfish_address_space u:object_r:qemu_device:s0
/dev/qemu_.* u:object_r:qemu_device:s0
/dev/ttyGF[0-9]* u:object_r:serial_device:s0
/dev/ttyS2 u:object_r:console_device:s0
diff --git a/ueventd.goldfish.rc b/ueventd.goldfish.rc
index 2c3ac4e..8674767 100644
--- a/ueventd.goldfish.rc
+++ b/ueventd.goldfish.rc
@@ -2,5 +2,6 @@
/dev/qemu_trace 0666 system system
/dev/qemu_pipe 0666 system system
/dev/goldfish_pipe 0666 system system
+/dev/goldfish_address_space 0666 system system
/dev/ttyS* 0666 system system
/proc 0666 system system
diff --git a/ueventd.ranchu.rc b/ueventd.ranchu.rc
index 50d6c53..0ad6230 100644
--- a/ueventd.ranchu.rc
+++ b/ueventd.ranchu.rc
@@ -4,3 +4,4 @@
/dev/ttyS* 0666 system system
/proc 0666 system system
/dev/goldfish_sync 0666 system system
+/dev/goldfish_address_space 0666 system system