blob: 3fc025019c5bb1d51ae5105c802760b534391d26 [file] [log] [blame]
bohu73c9f522018-06-13 10:05:24 -07001# goldfish logcat service: runs logcat -Q in logpersist domain
2
3# See global logcat.te/logpersist.te, only set for eng & userdebug,
4# allow for all builds in a non-conflicting manner.
5
6domain_auto_trans(init, logcat_exec, logpersist)
7
8# Read from logd.
9unix_socket_connect(logpersist, logdr, logd)
10
11# Write to /dev/ttyS2 and /dev/ttyGF2.
12allow logpersist serial_device:chr_file { write open };
13get_prop(logpersist, qemu_cmdline)