Merge "Remove ENABLE_TREBLE from sepolicy."
diff --git a/public/logd.te b/public/logd.te
index e8d3861..6478123 100644
--- a/public/logd.te
+++ b/public/logd.te
@@ -43,3 +43,7 @@
# Write to files in /data/data or system files on /data
neverallow logd { app_data_file system_data_file }:dir_file_class_set write;
+
+# Only init is allowed to enter the logd domain via exec()
+neverallow { domain -init } logd:process transition;
+neverallow * logd:process dyntransition;
diff --git a/public/logpersist.te b/public/logpersist.te
index 86eb0d3..ab7d04b 100644
--- a/public/logpersist.te
+++ b/public/logpersist.te
@@ -14,3 +14,7 @@
# Write to files in /data/data or system files on /data except misc_logd_file
neverallow logpersist { app_data_file system_data_file }:dir_file_class_set write;
+
+# Only init is allowed to enter the logpersist domain via exec()
+neverallow { domain -init } logpersist:process transition;
+neverallow * logpersist:process dyntransition;