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)
committerKarol Lewandowski <k.lewandowsk@samsung.com>
Thu, 22 Apr 2021 09:02:48 +0000 (11:02 +0200)
commit9fe2219207005106baf917aeceebd39ca07b3b00
treedb594bcd39d799b367e80f653d352b56add59b2d
parent80047c56185f4f58332bb63ef9f61a390879b07a
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