Re: [PATCH 13/13] android: ram_console: honor dmesg_restrict

Greg KH
2012-03-07T22:10:46Z

On Wed, Mar 07, 2012 at 01:58:23PM -0800, John Stultz wrote:
> From: Nick Kralevich <nnk@google.com>
>
> The Linux kernel has a setting called dmesg_restrict. When true,
> only processes with CAP_SYSLOG can view the kernel dmesg logs. This
> helps prevent leaking of kernel information into user space.
>
> On Android, it's possible to bypass these restrictions by viewing
> /proc/last_kmsg.
>
> This change makes /proc/last_kmsg require the same permissions as
> dmesg.
>
> Bug: 5555691

In what bugzilla does this bug number reference? Random integers don't
do much for people when looking back at the history of things :)

thanks,

greg k-h