From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757729AbdEVMPk (ORCPT ); Mon, 22 May 2017 08:15:40 -0400 Received: from mother.openwall.net ([195.42.179.200]:60097 "HELO mother.openwall.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1757535AbdEVMPf (ORCPT ); Mon, 22 May 2017 08:15:35 -0400 Date: Mon, 22 May 2017 14:08:48 +0200 From: Solar Designer To: Djalal Harouni Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-security-module@vger.kernel.org, kernel-hardening@lists.openwall.com, Andy Lutomirski , Kees Cook , 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 , linux-doc@vger.kernel.org, Al Viro , Ben Hutchings Subject: Re: [kernel-hardening] [PATCH v4 next 0/3] modules: automatic module loading restrictions Message-ID: <20170522120848.GA3003@openwall.com> References: <1495454226-10027-1-git-send-email-tixxdz@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1495454226-10027-1-git-send-email-tixxdz@gmail.com> User-Agent: Mutt/1.4.2.3i Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Djalal, Thank you for your work on this! On Mon, May 22, 2017 at 01:57:03PM +0200, Djalal Harouni wrote: > *) When modules_autoload_mode is set to (2), automatic module loading is > disabled for all. Once set, this value can not be changed. What purpose does this securelevel-like property ("Once set, this value can not be changed.") serve here? I think this mode 2 is needed, but without this extra property, which is bypassable by e.g. explicitly loaded kernel modules anyway (and that's OK). I'm sorry if this has been discussed before. Alexander