staging: android: logger: Allow a UID to read it's own log entries
authorNick Kralevich <nnk@google.com>
Wed, 27 Feb 2013 06:07:37 +0000 (22:07 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Mar 2013 08:38:44 +0000 (16:38 +0800)
commit0441bcf4db64e9825937916fe64d539d12c3fead
treea5a8eef32475efcbd0c0c1113a4f8e257c34455e
parent99150f6a1a015de275a83ca95aa5f4054b409f40
staging: 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.

Cc: Android Kernel Team <kernel-team@android.com>
Cc: Nick Kralevich <nnk@google.com>
Signed-off-by: Nick Kralevich <nnk@google.com>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/logger.c
drivers/staging/android/logger.h