Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1033904AbdDTUj1 (ORCPT ); Thu, 20 Apr 2017 16:39:27 -0400 Received: from mail-qk0-f182.google.com ([209.85.220.182]:34392 "EHLO mail-qk0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S943236AbdDTUjX (ORCPT ); Thu, 20 Apr 2017 16:39:23 -0400 MIME-Version: 1.0 In-Reply-To: <1492700543.31767.23.camel@decadent.org.uk> 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: Djalal Harouni Date: Thu, 20 Apr 2017 22:39:21 +0200 Message-ID: Subject: Re: [kernel-hardening] Re: [PATCH v3 1/2] modules:capabilities: automatic module loading restriction To: Ben Hutchings Cc: Linux Kernel Mailing List , Andy Lutomirski , Kees Cook , 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: 848 Lines: 33 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! Thanks! > Ben. > > -- > Ben Hutchings > It is easier to change the specification to fit the program than vice > versa. > -- tixxdz