android: logger: Allow a UID to read it's own log entries
authorNick Kralevich <nnk@google.com>
Thu, 23 Feb 2012 18:09:06 +0000 (10:09 -0800)
committerVarun Wadekar <vwadekar@nvidia.com>
Mon, 16 Apr 2012 09:46:03 +0000 (14:46 +0530)
commitf68ddba03ccba197e9fd4f72933a9fdbae1d59ab
tree45305940a038bbb3b09ec6fd1aaa2c23732a9f28
parentaee551259fb950a626aa10a383cff74c6697123e
android: logger: Allow a UID to read it's own log entries

Modify the kernel logger to record the UID associated with
the log entries. Always allow the same UID which generated a
log message to read the log message.

Allow anyone in the logs group, or anyone with CAP_SYSLOG, to
read all log entries.

In addition, allow the client to upgrade log formats, so they
can get additional information from the kernel.

Change-Id: Ie48fb614b43c9302a07ad2673b78dd8749b492b6
Signed-off-by: Nick Kralevich <nnk@google.com>
drivers/staging/android/logger.c
drivers/staging/android/logger.h