Re: [RFC PATCH] cmdline: Hide "debug" from /proc/cmdline

From: Jiri Kosina
Date: Wed Apr 02 2014 - 19:47:14 EST


On Wed, 2 Apr 2014, Linus Torvalds wrote:

> > Could be done per-fd: put a struct ratelimit_state into struct
> > devkmsg_user.
>
> Yeah, what Andrew said. My suggestion of per-task or per-cred is
> obviously moronic in comparison.

Which doesn't really protect you from tasks that do open()/write()/close()
cycle for /dev/kmsg write every 2ms though.

--
Jiri Kosina
SUSE Labs
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/