From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933324AbdEVXwW (ORCPT ); Mon, 22 May 2017 19:52:22 -0400 Received: from mail-it0-f44.google.com ([209.85.214.44]:37667 "EHLO mail-it0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932840AbdEVXwQ (ORCPT ); Mon, 22 May 2017 19:52:16 -0400 MIME-Version: 1.0 In-Reply-To: References: <1495454226-10027-1-git-send-email-tixxdz@gmail.com> <20170522120848.GA3003@openwall.com> <20170522164323.GA2048@openwall.com> From: Kees Cook Date: Mon, 22 May 2017 16:52:15 -0700 X-Google-Sender-Auth: Hjm_tCjIZskYbC9EMBlQbKz6-mE Message-ID: Subject: Re: [kernel-hardening] [PATCH v4 next 0/3] modules: automatic module loading restrictions To: Andy Lutomirski Cc: Djalal Harouni , Solar Designer , linux-kernel , Network Development , LSM List , "kernel-hardening@lists.openwall.com" , Andrew Morton , Rusty Russell , "Serge E. Hallyn" , Jessica Yu , "David S. Miller" , James Morris , Paul Moore , Stephen Smalley , Greg Kroah-Hartman , Tetsuo Handa , Ingo Molnar , Linux API , Dongsu Park , Casey Schaufler , Jonathan Corbet , Arnaldo Carvalho de Melo , Mauro Carvalho Chehab , Peter Zijlstra , Zendyani , "open list:DOCUMENTATION" , Al Viro , Ben Hutchings Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 22, 2017 at 4:38 PM, Andy Lutomirski wrote: > I think that having the un-resettable mode is unnecessary. We should > have option that disables loading modules entirely and cannot be > unset. (That means no explicit loads and not implicit loads.) Maybe > we already have this. Otherwise, tightening caps needed for implicit > loads should just be a normal yes/no setting IMO. Yup, /proc/sys/kernel/modules_disabled already does this. -- Kees Cook Pixel Security