staging: android: logger: enforce GID and CAP check on log flush
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 <6a543c1938e2357c042e911ad9c052b5afc2d394@android.com>
Cc: Charndeep Grewal <31140215b1303e3d52587056ce3f4ef185308114@tycho.ncsc.mil>
Signed-off-by: Charndeep Grewal <31140215b1303e3d52587056ce3f4ef185308114@tycho.ncsc.mil>
Signed-off-by: John Stultz <33837adfb53316eae44aad04041e1240088d76fd@linaro.org>
Signed-off-by: Greg Kroah-Hartman <4645f7897fd33786a2ee1264d590b3c400559d85@linuxfoundation.org>

TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs