Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1033703AbdDTV3G (ORCPT ); Thu, 20 Apr 2017 17:29:06 -0400 Received: from mail-io0-f182.google.com ([209.85.223.182]:35381 "EHLO mail-io0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1033622AbdDTV3C (ORCPT ); Thu, 20 Apr 2017 17:29:02 -0400 MIME-Version: 1.0 In-Reply-To: References: <1492640420-27345-1-git-send-email-tixxdz@gmail.com> <1492640420-27345-2-git-send-email-tixxdz@gmail.com> <1492654942.31767.21.camel@decadent.org.uk> <1492700543.31767.23.camel@decadent.org.uk> From: Kees Cook Date: Thu, 20 Apr 2017 14:28:59 -0700 X-Google-Sender-Auth: SrD8cA0WKYiWOtE-XVBSxGZFhW8 Message-ID: Subject: Re: [kernel-hardening] Re: [PATCH v3 1/2] modules:capabilities: automatic module loading restriction To: Djalal Harouni Cc: Ben Hutchings , Linux Kernel Mailing List , Andy Lutomirski , Andrew Morton , "Serge E. Hallyn" , "kernel-hardening@lists.openwall.com" , LSM List , Linux API , Dongsu Park , Casey Schaufler , James Morris , Paul Moore , Tetsuo Handa , Greg Kroah-Hartman , Jonathan Corbet , Jessica Yu , Rusty Russell , Arnaldo Carvalho de Melo , Mauro Carvalho Chehab , Ingo Molnar , Zendyani , Peter Zijlstra Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 865 Lines: 27 On Thu, Apr 20, 2017 at 1:39 PM, Djalal Harouni wrote: > On Thu, Apr 20, 2017 at 5:02 PM, Ben Hutchings wrote: >> On Thu, 2017-04-20 at 14:44 +0200, Djalal Harouni wrote: >>> > On Thu, Apr 20, 2017 at 4:22 AM, Ben Hutchings wrote: >>> > On Thu, 2017-04-20 at 00:20 +0200, Djalal Harouni wrote: >>> > [...] > [...] >>> modules_disabled is too restrictive and once set it can't be changed, >>> maybe that's why not all users use it. >>> >>> With modules_disabled=0 and modules_autoload=2 >> [...] >> >> Hmm, OK. How about naming this modules_autoload_mode, then, so that >> it's obviously not a boolean? > > Yes that's fine by me, kees already suggested to rename it to > "modules_autoload" I can change it to that if it's the best > suggestion! That's fine by me. -Kees -- Kees Cook Pixel Security