diff options
Diffstat (limited to 'sepolicy/common/logpersist.te')
-rw-r--r-- | sepolicy/common/logpersist.te | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sepolicy/common/logpersist.te b/sepolicy/common/logpersist.te new file mode 100644 index 0000000..3fc0250 --- /dev/null +++ b/sepolicy/common/logpersist.te @@ -0,0 +1,13 @@ +# 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) |