From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: We should disable dmesg for unprivileged users by default Date: Mon, 15 Jul 2019 14:48:58 +0200 Message-ID: <87ims3ihtx.fsf@elephly.net> References: <86h87qpv0u.fsf@gmail.com> <87y3101xtk.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:39611) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hn0Pk-0003IO-Lg for guix-devel@gnu.org; Mon, 15 Jul 2019 08:49:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hn0Pj-0001Ci-Oh for guix-devel@gnu.org; Mon, 15 Jul 2019 08:49:08 -0400 In-reply-to: <87y3101xtk.fsf@gnu.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org Ludovic Court=C3=A8s writes: > Hi, > > Alex Vong skribis: > >> I think we should set /proc/sys/kernel/dmesg_restrict to 1 by default to >> prevent unprivileged users from reading the kernel ring buffer (since it >> could expose sensitive information about the system). > > We could have a =E2=80=98dmesg-restrict=E2=80=99 service that would write= to that file > as part of system activation, and we=E2=80=99d add it to =E2=80=98%base-p= ackages=E2=80=99. > WDYT? This sounds good! --=20 Ricardo