Message ID | 20200810151812.752660880@linuxfoundation.org |
---|---|
State | Superseded |
Headers | show
Return-Path: <SRS0=uOiG=BU=vger.kernel.org=stable-owner@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 742E6C433E1 for <stable@archiver.kernel.org>; Mon, 10 Aug 2020 15:28:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 42C6622D06 for <stable@archiver.kernel.org>; Mon, 10 Aug 2020 15:28:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597073335; bh=XwGvhSoj3D63taX6wl6XnChPzp2QKG2HGHuDlB+YTno=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=ZAGGBsKYdq2hmaflq/P7hghV2oBrhcIrzDUoeqE7vK+reb8SacZJdUT7q+ovg2HD1 /4USGEXPPIs2hM58OJwnfHL2uRtF3/wRRIZxYqD7/VvBTfLHRx1gxA0FHGVynA9UFY gYsLqdD18yh2T1Fam6MCDizY3ZTj7F0QEADinj8g= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728915AbgHJP2x (ORCPT <rfc822;stable@archiver.kernel.org>); Mon, 10 Aug 2020 11:28:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:34926 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728888AbgHJP2s (ORCPT <rfc822;stable@vger.kernel.org>); Mon, 10 Aug 2020 11:28:48 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DC9DD22BF3; Mon, 10 Aug 2020 15:28:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597073327; bh=XwGvhSoj3D63taX6wl6XnChPzp2QKG2HGHuDlB+YTno=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=N0yBAOK7O7Gtm0GpHce73i85szRet3RJZFtjxi2RxlB1JDNCigybg3cAmpXWQJmXL wMh9kmqo2rI7m7CpHQ2T1qSK2Pzonu1yOZ/WycsEH57xOGOZbRU6sWUo/Q/sAK4WkK 9O9NglKQXdO3sRWj21t9Gilyd/siOiDxkdYre0xc= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, Bruno Meneguele <bmeneg@redhat.com>, Mimi Zohar <zohar@linux.ibm.com> Subject: [PATCH 5.4 66/67] ima: move APPRAISE_BOOTPARAM dependency on ARCH_POLICY to runtime Date: Mon, 10 Aug 2020 17:21:53 +0200 Message-Id: <20200810151812.752660880@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200810151809.438685785@linuxfoundation.org> References: <20200810151809.438685785@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
None
|
expand
|
--- a/security/integrity/ima/Kconfig +++ b/security/integrity/ima/Kconfig @@ -227,7 +227,7 @@ config IMA_APPRAISE_REQUIRE_POLICY_SIGS config IMA_APPRAISE_BOOTPARAM bool "ima_appraise boot parameter" - depends on IMA_APPRAISE && !IMA_ARCH_POLICY + depends on IMA_APPRAISE default y help This option enables the different "ima_appraise=" modes --- a/security/integrity/ima/ima_appraise.c +++ b/security/integrity/ima/ima_appraise.c @@ -18,6 +18,12 @@ static int __init default_appraise_setup(char *str) { #ifdef CONFIG_IMA_APPRAISE_BOOTPARAM + if (arch_ima_get_secureboot()) { + pr_info("Secure boot enabled: ignoring ima_appraise=%s boot parameter option", + str); + return 1; + } + if (strncmp(str, "off", 3) == 0) ima_appraise = 0; else if (strncmp(str, "log", 3) == 0)