From 0975d7301043bde5caf13c82aae7f5c22b220d22 Mon Sep 17 00:00:00 2001
From: Joel Galenson <jgalenson@google.com>
Date: Thu, 30 Nov 2017 15:38:19 -0800
Subject: [PATCH] Allow init to create /dev/event-log-tags.

Now that creating a symlink automatically sets its context,
init needs permission to create this file.

Bug: 69965807
Test: Booted device and tested wifi and camera.
Change-Id: I41f5ca8f4d877312c9b2a909001fe9cd80c3d458
---
 public/init.te | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/public/init.te b/public/init.te
index 979252296..11953a4f6 100644
--- a/public/init.te
+++ b/public/init.te
@@ -23,7 +23,7 @@ allow init properties_serial:file { write relabelto };
 allow init property_type:file { create_file_perms relabelto };
 # /dev/event-log-tags
 allow init device:file relabelfrom;
-allow init runtime_event_log_tags_file:file { open write setattr relabelto };
+allow init runtime_event_log_tags_file:file { open write setattr relabelto create };
 # /dev/socket
 allow init { device socket_device }:dir relabelto;
 # /dev/random, /dev/urandom
-- 
GitLab