[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ilnqjj$rjj$2@dough.gmane.org>
Date: Tue, 15 Mar 2011 13:46:28 +0000 (UTC)
From: WANG Cong <xiyou.wangcong@...il.com>
To: linux-kernel@...r.kernel.org
Subject: Re: [PATCH] Restrict write access to dmesg_restrict
On Mon, 14 Mar 2011 20:35:56 +0100, Richard Weinberger wrote:
> When dmesg_restrict is set to 1 CAP_SYS_ADMIN is needed to read the
> kernel ring buffer.
> But a root user without CAP_SYS_ADMIN is able to reset dmesg_restrict to
> 0.
>
> This is an issue when e.g. LXC (Linux Containers) are used and complete
> user space is running without CAP_SYS_ADMIN. A unprivileged and jailed
> root user can bypass the dmesg_restrict protection.
>
> With this patch writing to dmesg_restrict is only allowed when root has
> CAP_SYS_ADMIN.
>
> Signed-off-by: Richard Weinberger <richard@....at>
Makes sense.
Reviewed-by: WANG Cong <xiyou.wangcong@...il.com>
Thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists