Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp5163159ima; Tue, 5 Feb 2019 07:19:38 -0800 (PST) X-Google-Smtp-Source: AHgI3Ia2EcI/WIz5iSjnbMK8GAFZjuYw8fgJtmrOsSsZHWGsgL/asbErDT/VtxM0ButQQHqQwwF2 X-Received: by 2002:a17:902:28aa:: with SMTP id f39mr5630705plb.297.1549379978868; Tue, 05 Feb 2019 07:19:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549379978; cv=none; d=google.com; s=arc-20160816; b=S35VcGD4Wadt4zZwTOSYG2AYdkAuIvsKKjoWNIRApYyQ9fqcfZNv5bzgRocH020AgY 1VBfuPGvK5ZRoOeRKqJqyYaLoOvdUw3ejYWAwiwokIctU2Xgn+XEsRDiKkbOkt16uWxA MaluW5OEZwh8SeR6yP5JroQxP4Y8/lkcv1NE1uB+F1tVxTN7MDarTcDulpjzkP+Etvxh AEOkEHDdTXqfbDFIy8TawxpR2iR4Nh5k0f98DTiAb5HfpMNSo6oK702wyHD1hTtw2PKz KB6TsMDfKahtrWN/le5kkGn8oqSa5gwm2laYotBcC9XWQI7F1eaCaiCjKkwDtQQQs5G4 Yx4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=Xj37CtNcS/y5pi4Gq6YdkdO+q+j/uv4oSoSjroFz6HI=; b=CIykynYDYUTsSAnLhY7OhbBLFwbP9GMfGaWU5aqvt5hW93AqHDUh3CRg16O1AjPPI3 TWzCh9Jwio47h3A4THyde48stkpTYflh/Hyil3QTfCBvd826MLqQqOfINlYbLDAZT2JK zWYsr0rClIlgg30BR4uIpIssc6w1LbvIqaApdBLB1ftGZ7QIXs3gnJma9jtmhaUFlipJ ReHek5UHNoJcwf3mvmvvyUZB+pbvN9CwzfgE+RrN1nKmL5HK/+l1qPhmjmQRans5QtSg 3kBQ10G64yK40kR+gTrUFus3VzWVLvB8MyT4U4bMozxIj9WWTABWZM6SOBdjSvIGLcYl EvSw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u131si3467220pgc.287.2019.02.05.07.19.22; Tue, 05 Feb 2019 07:19: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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729580AbfBEPTF (ORCPT + 99 others); Tue, 5 Feb 2019 10:19:05 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:56770 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729174AbfBEPTF (ORCPT ); Tue, 5 Feb 2019 10:19:05 -0500 Received: from mail-yb1-f199.google.com ([209.85.219.199]) by youngberry.canonical.com with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.76) (envelope-from ) id 1gr2V5-0004xN-52 for linux-kernel@vger.kernel.org; Tue, 05 Feb 2019 15:19:03 +0000 Received: by mail-yb1-f199.google.com with SMTP id e10so1592892ybr.18 for ; Tue, 05 Feb 2019 07:19:03 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Xj37CtNcS/y5pi4Gq6YdkdO+q+j/uv4oSoSjroFz6HI=; b=RPMh4VJN0Vs95VNPvRJzXIsFJw515Pr24QiZHvLQsmUkUc3KiIpn+FFcuG9XUXl7qp J/76t+Mi8mUaRrIDxMRG8KWUJunFY7XI8AtdVTOcsdWW2EWtZn0GowCNtwNX0+4Bdr3Y y71ouCEOEs+KUxR2TSI/i6QFJReugIbKx5AjUX3TZ8BUp78HEKK/i2FSwSPk467RK0PJ vs17JSvp+78nmR5M2AxArH0M6acMnEaImJ7nFZRHMLNAsgLYvzBrUUWqXALU623ZsFqj rFAThrjCTip/ubsxHW1ECbL/2LsnrqqNcbWt1ICpV6azde5z4THScUEsIi5ygslz61Eb 6JNQ== X-Gm-Message-State: AHQUAuak6PWO3W0FDSjQ7SadlVB3856RjtxF//Zhg6wZ4zpQtxqRA+tz k2bhEMfXXdrnJZh6KftHgQkxJTioCmGACIpo65H2uM4fp2ZrLMqTctqyQZKR5Fshw+c92ZT0aZO GjLswy9IRUpULJZZ2rLLBuSzV/CO77zPxStOwAaeNhg== X-Received: by 2002:a25:2fc6:: with SMTP id v189mr4327473ybv.121.1549379942001; Tue, 05 Feb 2019 07:19:02 -0800 (PST) X-Received: by 2002:a25:2fc6:: with SMTP id v189mr4327413ybv.121.1549379941393; Tue, 05 Feb 2019 07:19:01 -0800 (PST) Received: from localhost ([2605:a601:ac2:fb20:2df6:439b:8b17:3e1f]) by smtp.gmail.com with ESMTPSA id f188sm1418274ywc.70.2019.02.05.07.19.00 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 05 Feb 2019 07:19:00 -0800 (PST) Date: Tue, 5 Feb 2019 09:18:59 -0600 From: Seth Forshee To: Mimi Zohar Cc: linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, Jessica Yu , Luis Chamberlain , David Howells , Justin Forbes , Matthew Garrett Subject: Re: [PATCH] x86/ima: require signed kernel modules Message-ID: <20190205151859.GD16362@ubuntu-xps13> References: <1548962339-10681-1-git-send-email-zohar@linux.ibm.com> <1548962339-10681-2-git-send-email-zohar@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1548962339-10681-2-git-send-email-zohar@linux.ibm.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 31, 2019 at 02:18:59PM -0500, Mimi Zohar wrote: > Require signed kernel modules on systems with secure boot mode enabled. > > To coordinate between appended kernel module signatures and IMA > signatures, only define an IMA MODULE_CHECK policy rule if > CONFIG_MODULE_SIG is not enabled. > > This patch defines a function named set_module_sig_required() and renames > is_module_sig_enforced() to is_module_sig_enforced_or_required(). The > call to set_module_sig_required() is dependent on CONFIG_IMA_ARCH_POLICY > being enabled. > > Signed-off-by: Mimi Zohar With respect to interactions with the kernel lockdown patches, this looks better than the patches I saw previously. I don't feel like I know enough about what's going on with IMA to ack the patch, but I feel confident that it's at least not going to break signature enforcement for us. Thanks, Seth