Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp402921ybh; Thu, 12 Mar 2020 04:16:30 -0700 (PDT) X-Google-Smtp-Source: ADFU+vv98gBnvD0kknCFYURtAYFNupWlAHJpL0pG0Brl8trIvWTrhJ2LUKEsMS+APhViuw5n90Au X-Received: by 2002:a05:6830:11c7:: with SMTP id v7mr5562000otq.41.1584011790410; Thu, 12 Mar 2020 04:16:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584011790; cv=none; d=google.com; s=arc-20160816; b=fG7IvUioI4tSJrLxeyOZf/MyLBWzXtz9EEDUYxL21fWzlyivXQO5ML5uIUfxH+l0z9 vpa0PHdNYK1aCTShmNRTBOoRIyBADMO1Zf0qEYhdVyPiZXAJJonLl8T9DcPjhik2Sn8V gQhl/BG7mIPTDol4mE0vRwNmddhriq9DHoqYubzAHBlwv/eV1QwziGJqDRqWVNgjU/Tb dBE167EdIecSM7FJgQ/QzSV4sOuMWZUN80QiE3nNQZZqmGe/+UgEGxAwZpRrxvUUkCzy TMSgwlxxr2g/Pqd6YyOlp/Suomn5ehTG1/Oa9kAoJCQp2YnJoTKumpw5WP2E/Ho9Ayxr QThQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=4geycpt2qvWbUaRVZsgFbTdpxz2a/tZbMuUtWLTmjn8=; b=zxEKHRJ0Lvl4oiBvxmkFCQKpifXLPxF2qpyxuyyPpPekBljyKDm0b5NH3Bx4NOM8y+ LQng4rO2qFNGIw+sYd5eHQ5WbTL+GSbdoLyfu5kV+opouFbxuOIpilIaMNZFF/Dz6agm lCr27Jxd0OIc1FyVCngOW67zXEsqF3CLWdQAEwFMPweK0B30GUt5HJe4mQQdY/1tXx9X M3jj6Z0u7PF79tEXyAZOOFGqILNbUjlXcBU4iw8W75YjoAWi75q97cd1gb8T2k9tXC3z 2s4BFhPwK3S3OAxdXwv4sVMc/R6JgPpm2AEtSQgLd6DwEk0hs0rRdbeQamRAqxiF/A/2 0sBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=Nsh7A3T9; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d22si2432590oti.316.2020.03.12.04.16.18; Thu, 12 Mar 2020 04:16:30 -0700 (PDT) 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=@ellerman.id.au header.s=201909 header.b=Nsh7A3T9; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727015AbgCLLQA (ORCPT + 99 others); Thu, 12 Mar 2020 07:16:00 -0400 Received: from ozlabs.org ([203.11.71.1]:41585 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726000AbgCLLP7 (ORCPT ); Thu, 12 Mar 2020 07:15:59 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 48dR8X5Bv8z9sPF; Thu, 12 Mar 2020 22:15:56 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ellerman.id.au; s=201909; t=1584011757; bh=4geycpt2qvWbUaRVZsgFbTdpxz2a/tZbMuUtWLTmjn8=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=Nsh7A3T9QhufussDqh6t2HhZOJeKPshqGQLRydZ+4DqE+DrYrNK8p09zF6lMuNbPp lqkyUlaVR+EWRRHqzjzcy/Df2pSVAHJJvp0A5SlXuPfvbSNYH34AQONTelobFpo72G 7oz//YPk0Ej2OZc7yxOHsdnwE3hMi42WqftrRjwvwnKodujlENXI1qwe2svalECXMO muqFxOsAtIuAnGakEDji8IzpRNo7xRVqmdTBStq9I/w3//nIYtD95x3qjjBoKNydll prwdvFroRQMPje7gm8XTWT2INbodh9tjCxtJCNxb6TFYHU2Ku9N9/8wMdU5+Pett6E uE1RDylgnsSpw== From: Michael Ellerman To: Nayna Jain , linux-integrity@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-efi@vger.kernel.org, linux-s390@vger.kernel.org, x86@kernel.org Cc: Ard Biesheuvel , Philipp Rudo , zohar@linux.ibm.com, Thomas Gleixner , linux-kernel@vger.kernel.org, Nayna Jain , Nayna Jain Subject: Re: [PATCH v3] ima: add a new CONFIG for loading arch-specific policies In-Reply-To: <1583715471-15525-1-git-send-email-nayna@linux.ibm.com> References: <1583715471-15525-1-git-send-email-nayna@linux.ibm.com> Date: Thu, 12 Mar 2020 22:15:54 +1100 Message-ID: <87d09hj02d.fsf@mpe.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Nayna Jain writes: > From: Nayna Jain > > Every time a new architecture defines the IMA architecture specific > functions - arch_ima_get_secureboot() and arch_ima_get_policy(), the IMA > include file needs to be updated. To avoid this "noise", this patch > defines a new IMA Kconfig IMA_SECURE_AND_OR_TRUSTED_BOOT option, allowing > the different architectures to select it. > > Suggested-by: Linus Torvalds > Signed-off-by: Nayna Jain > Acked-by: Ard Biesheuvel > Cc: Ard Biesheuvel > Cc: Philipp Rudo > Cc: Michael Ellerman > --- > v3: > * Removes CONFIG_IMA dependency. Thanks Ard. > * Updated the patch with improvements suggested by Michael. It now uses > "imply" instead of "select". Thanks Michael. Acked-by: Michael Ellerman (powerpc) cheers