Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp6342532imb; Fri, 8 Mar 2019 15:31:38 -0800 (PST) X-Google-Smtp-Source: APXvYqxazR3K2b9kKuNkY9v5X5Gk2tCKOT33VpGBeO9mvMgjSZH/7PDi/UyF56TbM3qGuQqj0uZp X-Received: by 2002:a62:4793:: with SMTP id p19mr21576346pfi.76.1552087898136; Fri, 08 Mar 2019 15:31:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1552087898; cv=none; d=google.com; s=arc-20160816; b=ujAF+XZq+uk6Srybii+4RiEkKFcMQgbKXhHBBShDrBHgLwqV3VzfG6/L6pr5D9IXkS 75NCfy6nlg/VTerm8unwx7XD80tfdRQHbK7I4i7BmDk86Sxj6FQqhk1NnyiQejTOdxIp 8yMZm3lPhtxAw79tLZNuIjwdV29qk3+eWA6wFSezO2fAun0LsBRRrY/svkjstblXoBjg eD8NqCj2Nqb5tukQPYj0LuGmZZ0G4+ikiP1fw7keC76ROYAXIfZUqZxhw2LiNT7dahD9 AKo1MqgKVKRn6AmreEkksVrFkxCo0Ouf/SFNoyxXWXFNd7Gx70HCcJbKjguB8TeZvkji 8V9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=uyKi46/3lZKgO9wRb326RaXuA/9S3eKGPLtaU64kZXc=; b=0Ng/aXEaiGHb8DKehBUacC1ufaBOBi8E64RLD0YgIFXbbzeVvgYpYVSGAlHvsb99sc qg0e8yOB2Sqbz/5MF7C5VAENQkD980bBXV+BTyy2LENTB1gm2wSzc3s1P0fgMyxRagX1 0obrvUaeKDjsjbShkAFvag2SQLoN8A09Q3UfwbhscvN6xth27+T878WqujuVV+cXDs5n YhEm/qH1W7Ym2h7ax07dt6cB0u8mfMQklBVw1QQCb1+LRIO3k+TShLyJyu1T/9IfwHP1 reUstdKHP6BIGxNJyKBIS+qCtVcd0SZBDBGyLVdCtaAVrKV1PWM7Vz2cK3CpRg3UUfST MQpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=UfKT7gC4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s19si7886141plq.148.2019.03.08.15.31.21; Fri, 08 Mar 2019 15:31:38 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=UfKT7gC4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726379AbfCHXbB (ORCPT + 99 others); Fri, 8 Mar 2019 18:31:01 -0500 Received: from mail-it1-f194.google.com ([209.85.166.194]:33568 "EHLO mail-it1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726307AbfCHXbB (ORCPT ); Fri, 8 Mar 2019 18:31:01 -0500 Received: by mail-it1-f194.google.com with SMTP id f186so7597135ita.0 for ; Fri, 08 Mar 2019 15:31:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=uyKi46/3lZKgO9wRb326RaXuA/9S3eKGPLtaU64kZXc=; b=UfKT7gC4crlP0hVjGkmMYK4IRiQKubJ81v3W4HLS5xs32/EMChBVpE3NyB1oEGMLcA hS5+SjWPxNFzvnrTAO/+JmFRuv3YD8xGBSq4IarcmY0DV3A+XUQFujimn1Z13EQ/icQI JPqsBnJbuD85nRCUDSN1hPYkxWGZESOfAmK8Po093C55fORjkPbSIpDor5EvSBkuPQCh 4hnQshvSU8Pr21I+uAW1KFt5tE+vCSHSEE9tlDBQQhgN2PLHDqmUpymusQlFV1oZlPAb 92bQMSf8mz2/gjSnRxZqrvQCs9UedGIuGeMOCEY1i9TLN/uSDIB8eh8hp+owq09M46O5 wblw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=uyKi46/3lZKgO9wRb326RaXuA/9S3eKGPLtaU64kZXc=; b=bMmC7mWGpPGLLz0jbia07vyrz8JHUqmVgovbS7tx4TghGr0AeRvjXdRMuz4ywLGJ+O VzTIHeSr3XS94YB8QWWMRVf76L+xifjgt96NHPuQ6tYLQuqyaKOJFXbyCe9eXmt/bamx RfGs9IaxV67RXMCeKR15KU3cb1y1AEkYVcGM+P5djdw0yq3EOlKyJOS0teE9n2Uzb/Ui 4JqdI5fVGc+SO8IPBrvZWRPMaWHs3vTbf62VPRu8hdImJ46ZSXshdoLZrgFIas/eaZHx H8BzrHK2q/EBFdRsrF4CS2gg7aE4BjQKZp2njOf8xNTHrJiamB1XCBgHhxuTX+TvwcnH IYQg== X-Gm-Message-State: APjAAAUVz+rUYBbonxYIbwVJt1XCHXPOTJvDe0aPzLhVwu/2RrpyvkCy mI3pBtKFBPNy2A2GpzfQn4wHxnhPEnGhstk0C0KMkA== X-Received: by 2002:a02:23cd:: with SMTP id u196mr11334146jau.103.1552087860113; Fri, 08 Mar 2019 15:31:00 -0800 (PST) MIME-Version: 1.0 References: <20190306235913.6631-1-matthewgarrett@google.com> <20190306235913.6631-4-matthewgarrett@google.com> In-Reply-To: From: Matthew Garrett Date: Fri, 8 Mar 2019 15:30:48 -0800 Message-ID: Subject: Re: [PATCH 03/27] Enforce module signatures if the kernel is locked down To: James Morris Cc: LSM List , Linux Kernel Mailing List , David Howells Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 8, 2019 at 3:00 PM James Morris wrote: > > On Wed, 6 Mar 2019, Matthew Garrett wrote: > > > From: David Howells > > > > If the kernel is locked down, require that all modules have valid > > signatures that we can verify. > > Perhaps note that this won't cover the case where folk are using DM-Verity > with a signed root hash for verifying kernel modules. Mm. I can't see a terribly good way of doing this generically - loadpin gives no indication to the module loading code that it comes from a trusted source. Would making the lockdown/module signature enforcement a separate config option be reasonable?