Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit df2620ad authored by Miodrag Dinic's avatar Miodrag Dinic
Browse files

file_contexts: Label /dev/ttyS2 as console_device

This fixes the issue with the emulator "-shell" option.
Init tries to open the console which is passed through
the kernel androidboot.console property, but fails to
open it because "avc" denies it. Init only has permissions
to open console_device in rw mode. This ensures that
/dev/ttyS2 is properly labeled as console_device.

Replaced tabs with spaces.

Change-Id: I9ef94576799bb724fc22f6be54f12de10ed56768
parent f737a120
Loading
Loading
Loading
Loading
+11 −10
Original line number Diff line number Diff line
@@ -5,6 +5,7 @@
/dev/qemu_.*                 u:object_r:qemu_device:s0
/dev/socket/qemud            u:object_r:qemud_socket:s0
/dev/ttyGF[0-9]*             u:object_r:serial_device:s0
/dev/ttyS2                   u:object_r:console_device:s0
/system/bin/qemud            u:object_r:qemud_exec:s0
/sys/qemu_trace(/.*)?   --   u:object_r:sysfs_writable:s0
/system/etc/init.goldfish.sh u:object_r:goldfish_setup_exec:s0