Message ID | 1331157503-3413-14-git-send-email-john.stultz@linaro.org |
---|---|
State | Superseded |
Headers | show |
diff --git a/drivers/staging/android/ram_console.c b/drivers/staging/android/ram_console.c index d956b84..b242be2 100644 --- a/drivers/staging/android/ram_console.c +++ b/drivers/staging/android/ram_console.c @@ -99,6 +99,9 @@ static ssize_t ram_console_read_old(struct file *file, char __user *buf, char *str; int ret; + if (dmesg_restrict && !capable(CAP_SYSLOG)) + return -EPERM; + /* Main last_kmsg log */ if (pos < old_log_size) { count = min(len, (size_t)(old_log_size - pos));