logd: only copy event-log-tags on sdk < 28
File not present in 9.0 tree
Change-Id: I54c5321813ddabbf11082fffc093efd4a829c185
diff --git a/etc/init.recovery.logd28.rc b/etc/init.recovery.logd28.rc
new file mode 100644
index 0000000..673df77
--- /dev/null
+++ b/etc/init.recovery.logd28.rc
@@ -0,0 +1,31 @@
+on init
+ start logd
+
+on fs
+ write /dev/event-log-tags "# content owned by logd
+"
+ chown logd logd /dev/event-log-tags
+ chmod 0644 /dev/event-log-tags
+
+on load_persist_props_action
+ start logd
+ start logd-reinit
+
+service logd /sbin/logd
+ socket logd stream 0666 logd logd
+ socket logdr seqpacket 0666 logd logd
+ socket logdw dgram+passcred 0222 logd logd
+ file /proc/kmsg r
+ file /dev/kmsg w
+ user logd
+ group logd system package_info readproc
+ writepid /dev/cpuset/system-background/tasks
+ seclabel u:r:logd:s0
+
+service logd-reinit /sbin/logd --reinit
+ oneshot
+ disabled
+ user logd
+ group logd
+ writepid /dev/cpuset/system-background/tasks
+ seclabel u:r:logd:s0