Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp927585imj; Fri, 15 Feb 2019 09:06:11 -0800 (PST) X-Google-Smtp-Source: AHgI3IYcvcAigUOUq8ZMLmALwRcNZY8jvqgIpL7qoK3Ld4Jr2Z2F6BIjTGd5QhIcIneHPYbNxDMv X-Received: by 2002:a62:b408:: with SMTP id h8mr8349975pfn.74.1550250371438; Fri, 15 Feb 2019 09:06:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550250371; cv=none; d=google.com; s=arc-20160816; b=Jhej0MzZ75JnIo0QIaspdpm4tIJMFSjX+cNX5+k+YZFqqE9o6dVqSqp4eMQaxTKVHR 4yCKKkQMvXDP6UEeAKDu1fQlS14b0IH+xJW3chUTKX4ciyDO4CzD5Z8GHsed63AbDUls K0zqCKrRxmZcHaATiiVigE7ss0uKQxZNHVm2hzCVwqXC//ltD3NjqxAcfHsaito1f3PL 9h6bUovwlegi1qKNuvHe7NyFxcxo8xAsskFij8jjmf8VEcKJow4RoJvuzjUhQ1HvU/Ev fChNhvJiZG3wkZ3zzK6+7ukVKu8aAvDL0/c2H6f+4lkq/Vw5o0ksNpUCnXi46yVYBPyY XpMA== 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=FQVDnXX8akd0rqu7cCn6I1ckz5e6fu33GxPRr72g7lE=; b=th5YaWWGNa0gjXxjj93h73A2VsO2qjRU+0PgYvavrNWIyT6Hl7PhL96NY4PHS2I6Vq h367Mpz5RmtrELUXAgTmQ5I5ldGYebvOMcfsxHobpVE9MMwzsmU7H9s/bfMaGibsX3tj B8D6YkJTiYkCkHSSevqPunLGCO67p907L5GuHtBJNHOY/qwiS7b1pVoR3FMCgYv+YT6T pAPnJp46B2RhsdXGOyv3+Fs2QTOHmI5IxAJvRc+7D0BC+wk8WEa41UroPPtNOkuk6cZM 7iQitWfcw1aqYi6XPCB8IxcizoQO2VxF2Fn9iqx6tIUD1IG1S7CM7mQWdKBDNW1m24Y1 B3mA== 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c16si6076455pgh.545.2019.02.15.09.05.48; Fri, 15 Feb 2019 09:06:11 -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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388907AbfBORBu (ORCPT + 99 others); Fri, 15 Feb 2019 12:01:50 -0500 Received: from mail-pg1-f196.google.com ([209.85.215.196]:43012 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726122AbfBORBt (ORCPT ); Fri, 15 Feb 2019 12:01:49 -0500 Received: by mail-pg1-f196.google.com with SMTP id v28so5060215pgk.10; Fri, 15 Feb 2019 09:01:49 -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=FQVDnXX8akd0rqu7cCn6I1ckz5e6fu33GxPRr72g7lE=; b=SwHI+2K5iS0LeLjC4ez9BXexG7QXa7e9Z3iuQOkC1dma729tNaDuVqJH/8UZQiVff2 H0QuWmpcyTa/1Ja8DC+1aqKmvHE7+XdYPk4FLVQVRKUbT4/lnBSuYQea9bbpJiGoV0C3 cEGc12pdB+QERiIRp891KWM++c0gTWmI8bq2V7jXaG1uE1RGQuJlGBrUO+APp9QVqxDk 9dYhIGeUeVEV3cjVy/M4X/2bvEreNpdQ+SM22+YyGnXLnbmvr3JTYrulo/+ypGd/s3uq mDtPYTTlf1+lk21lY4TLDXhmRvyD4DBmNWfis45xaQR3Mf0ekGzkbGWrHvIvjJnJ5dqo zsPQ== X-Gm-Message-State: AHQUAuZtbN5NSKw1sCkFHZE+VO5XDAW9rDtcejpUjuddjC6IX9IPRxFz neZpnQYb+fHZReVMrLw+gRylG6DbNGI= X-Received: by 2002:a63:8743:: with SMTP id i64mr6285562pge.69.1550250108388; Fri, 15 Feb 2019 09:01:48 -0800 (PST) Received: from garbanzo.do-not-panic.com (c-73-71-40-85.hsd1.ca.comcast.net. [73.71.40.85]) by smtp.gmail.com with ESMTPSA id s2sm13891493pfa.167.2019.02.15.09.01.45 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 15 Feb 2019 09:01:46 -0800 (PST) Received: by garbanzo.do-not-panic.com (sSMTP sendmail emulation); Fri, 15 Feb 2019 09:01:44 -0800 Date: Fri, 15 Feb 2019 09:01:44 -0800 From: Luis Chamberlain To: Mimi Zohar Cc: linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, Jessica Yu , David Howells , Seth Forshee , "Bruno E . O . Meneguele" Subject: Re: [PATCH v3] x86/ima: require signed kernel modules Message-ID: <20190215170144.GH11489@garbanzo.do-not-panic.com> References: <1550249418-7986-1-git-send-email-zohar@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1550249418-7986-1-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 Fri, Feb 15, 2019 at 11:50:18AM -0500, Mimi Zohar wrote: > Have the IMA architecture specific policy require signed kernel modules > on systems with secure boot mode enabled; and coordinate the different > signature verification methods, so only one signature is required. > > Requiring appended kernel module signatures may be configured, enabled > on the boot command line, or with this patch enabled in secure boot > mode. This patch defines set_module_sig_enforced(). > > 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. A custom IMA policy may still define > and require an IMA signature. > > Signed-off-by: Mimi Zohar Reviewed-by: Luis Chamberlain Luis