resolved conflicts for merge of 77ec892b to jb-mr2-dev-plus-aosp
Change-Id: Ia9f34580a35d3f5ff7ea0ac9a3784d2650e61b6a
diff --git a/te_macros b/te_macros
index cc0dc76..1245c8a 100644
--- a/te_macros
+++ b/te_macros
@@ -286,6 +286,17 @@
')
#####################################
+# write_klog(domain)
+# Ability to write to kernel log via
+# klog_write()
+# See system/core/libcutil/klog.c
+define(`write_klog', `
+type_transition $1 device:chr_file klog_device "__kmsg__";
+allow $1 klog_device:chr_file { create open write unlink };
+allow $1 device:dir { add_name remove_name };
+')
+
+#####################################
# Non system_app application set
#
define(`non_system_app_set', `{ appdomain -system_app }')