From 3439cc6145d24d2495490dab3e48d91cf36bccc3 Mon Sep 17 00:00:00 2001 From: Nick Kralevich <nnk@google.com> Date: Thu, 29 Mar 2012 08:58:47 -0700 Subject: [PATCH] change files in /dev/log/ to 666 With newer Android kernels, anyone can read from the files in /dev/log. If you're in the logs group (have the READ_LOGS) permission, you'll see all entries. If you're not in that group, you'll see log messages associated with your UID. Relax the permissions on the files in /dev/log/ to allow an application to read it's own log messages. Bug: 5748848 Change-Id: Ie740284e96a69567dc73d738117316f938491777 --- rootdir/ueventd.rc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rootdir/ueventd.rc b/rootdir/ueventd.rc index 438cf0a56..07624c4ad 100644 --- a/rootdir/ueventd.rc +++ b/rootdir/ueventd.rc @@ -8,8 +8,9 @@ /dev/ashmem 0666 root root /dev/binder 0666 root root -# logger should be world writable (for logging) but not readable -/dev/log/* 0662 root log +# Anyone can read the logs, but if they're not in the "logs" +# group, then they'll only see log entries for their UID. +/dev/log/* 0666 root log # the msm hw3d client device node is world writable/readable. /dev/msm_hw3dc 0666 root root