From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Garrett Subject: Re: [PATCH V34 19/29] Lock down module params that specify hardware parameters (eg. ioport) Date: Thu, 27 Jun 2019 08:30:52 -0700 Message-ID: References: <20190622000358.19895-1-matthewgarrett@google.com> <20190622000358.19895-20-matthewgarrett@google.com> <87ef3f3ihh.fsf@dja-thinkpad.axtens.net> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: In-Reply-To: <87ef3f3ihh.fsf@dja-thinkpad.axtens.net> Sender: linux-kernel-owner@vger.kernel.org To: Daniel Axtens Cc: James Morris , LSM List , Linux Kernel Mailing List , Linux API , David Howells , Alan Cox List-Id: linux-api@vger.kernel.org On Wed, Jun 26, 2019 at 6:49 PM Daniel Axtens wrote: > > Matthew Garrett writes: > > + if (kp->flags & KERNEL_PARAM_FL_HWPARAM && > > + security_locked_down(LOCKDOWN_MODULE_PARAMETERS)) > > + return false; > > + return true; > > } > > Should this test occur before tainting the kernel? Seems reasonable.