staging: android: logger: enforce GID and CAP check on log flush
authorCharndeep Grewal <csgrewa@tycho.ncsc.mil>
Wed, 27 Feb 2013 06:07:38 +0000 (22:07 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Mar 2013 08:38:44 +0000 (16:38 +0800)
commit1e70bd46a5a950b7ba319e50bdfed9d20ed9fd73
treef07f6af8bec3cb121ac1ae6810d8612261bf271e
parent0441bcf4db64e9825937916fe64d539d12c3fead
staging: android: logger: enforce GID and CAP check on log flush

Restrict log flushing to those in the logs group, or
anyone with CAP_SYSLOG.

Cc: Android Kernel Team <kernel-team@android.com>
Cc: Charndeep Grewal <csgrewa@tycho.ncsc.mil>
Signed-off-by: Charndeep Grewal <csgrewa@tycho.ncsc.mil>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/logger.c