platform_build/target/board/generic/sepolicy/logpersist.te
bohu 8c3364bd59 Emulator: Enable logcat -Q to run in emulator
Create qemu_cmdline property and make sure logcat
can read it.

Change-Id: I83261a1ba29ecf9fd9b51a815425742177018c87
2017-03-15 22:27:08 -07:00

13 lines
430 B
Text

# goldfish logcat service: runs logcat -Q in logpersist domain
# See global logcat.te/logpersist.te, only set for eng & userdebug,
# allow for all builds in a non-conflicting manner.
domain_auto_trans(init, logcat_exec, logpersist)
# Read from logd.
unix_socket_connect(logpersist, logdr, logd)
# Write to /dev/ttyS2 and /dev/ttyGF2.
allow logpersist serial_device:chr_file { write open };
get_prop(logpersist, qemu_cmdline)