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)
committerNick Kralevich <nnk@google.com>
Wed, 21 Mar 2012 23:12:05 +0000 (16:12 -0700)
commitd993be54c164ea473816f04745ae4f0504dbccfb
treeca07ed85940ecfcd9bf4d3ac5cd33efc425ab6d5
parent17ce6ff9516dab940486898ad855ba410e364dc9
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