From mboxrd@z Thu Jan 1 00:00:00 1970 From: Solar Designer Subject: Re: [PATCH v4 next 0/3] modules: automatic module loading restrictions Date: Mon, 22 May 2017 14:08:48 +0200 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 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 , Pete To: Djalal Harouni Return-path: List-Post: List-Help: List-Unsubscribe: List-Subscribe: Content-Disposition: inline In-Reply-To: <1495454226-10027-1-git-send-email-tixxdz@gmail.com> List-Id: netdev.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