From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: Re: We should disable dmesg for unprivileged users by default Date: Sun, 14 Jul 2019 16:43:19 +0200 Message-ID: <87y3101xtk.fsf@gnu.org> References: <86h87qpv0u.fsf@gmail.com> 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]:52898) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hmfik-0000Io-JS for guix-devel@gnu.org; Sun, 14 Jul 2019 10:43:23 -0400 In-Reply-To: <86h87qpv0u.fsf@gmail.com> (Alex Vong's message of "Sat, 13 Jul 2019 09:45:21 +0800") 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: Alex Vong Cc: guix-devel@gnu.org 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 t= o that file as part of system activation, and we=E2=80=99d add it to =E2=80=98%base-pac= kages=E2=80=99. WDYT? That way, people could easily remove it from =E2=80=98%base-packages=E2=80= =99 if they don=E2=80=99t want it. (I might do that on my laptop for instance. :-)) Thanks, Ludo=E2=80=99.