OSDN Git Service

goldfish: logcat -Q in logd domain
authorMark Salyzyn <salyzyn@google.com>
Wed, 3 Jun 2015 14:50:31 +0000 (07:50 -0700)
committerNick Kralevich <nnk@google.com>
Wed, 3 Jun 2015 17:47:34 +0000 (10:47 -0700)
Deal with a build failure in conflict with cl/152105

(cherrypicked from commit 1cc7735ffa5194b9651429b2a96d6f6f319ca5eb)

Bug: 19608716
Change-Id: I1078046db3b159c1baf0a22435c3e777424453a1

target/board/generic/sepolicy/goldfish_logcat.te

index f820c2a..88fcb79 100644 (file)
@@ -1,10 +1,9 @@
-# goldfish-logcat service:  runs logcat -Q
-type goldfish_logcat, domain;
+# goldfish-logcat service:  runs logcat -Q in logd domain
 
-domain_auto_trans(init, logcat_exec, goldfish_logcat)
+domain_auto_trans(init, logcat_exec, logd)
 
 # Read from logd.
-read_logd(goldfish_logcat)
+read_logd(logd)
 
 # Write to /dev/ttyS2 and /dev/ttyGF2.
-allow goldfish_logcat serial_device:chr_file { write open };
+allow logd serial_device:chr_file { write open };