Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp807944pxj; Fri, 14 May 2021 17:03:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw5PiflZLJKM1yWjygwQ9VNWl6/AA/EZz+CnOTaWxl5n0AhJRlRtJ8zs2X9LgPMMvMy4lJa X-Received: by 2002:a05:6402:4251:: with SMTP id g17mr57582937edb.205.1621037028055; Fri, 14 May 2021 17:03:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621037028; cv=none; d=google.com; s=arc-20160816; b=JlvXBfr8IMl44HyayPNqkmtOLt7VqTkQv64tMohEje9FMpe+DN51v3SzgTo7Cth0PC UL+9EfM5R3QOO339Sk/L+ewNyqgI/psbz1gNu/g9RYxQ/ByUCsrtIPuwwmMzB+HxYR2J +96Iox45p8aUoxXv3l90XF2BH58cvMrmc8d6jA0NdtDleQomelMfgEE3OFq/OjlYH08L 1HEmCm4/Xp6e54CWW2y011YAEaabRD+b0leDsIRpFkXLHCA059Q2w+dxvR46GtM7mnqa ovG/d7hsws3Br2aNbLLGzn5uqA7Mgi0kLLX6mLao2GiZn3qQDdyAMy+8G3BpZiqJednq Llaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=hzbyJzBP9Hx0b6auqL/1tEt5TBhUryEUgkdzMzYIQp4=; b=DkEG4ai63MwpAneKxnDW1ZaJpJ3QLUzVRuNnWLfgp2bg8bE+wXGb+UE9Den8eMFhO0 3K75IMTJex9K+kDG0HzxavF5SViCAiQd+Z3N7dXs+95pm32Dd68L5GIVYpU+nU9g3+5p ftj/cGVV9WRvhqdEpDRLPVOjabz+UNX8JA3To2P4V3gQrbl8IIWaAA0LFbvhcNdMbiDO AyqxVYXTRqNR7Bd0hegZWvhAEm8+B74OtSSVyX24yAbe6TEr3/CO/qVJsb1mnCC1U8jp /KXLHbwe43ncwOKWeB7QCL54H2+xl7ccEui+KCi0o3vVdVpfnjUkuIIM3ZNSQptMwyHM sjJQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q8si7844114ejy.320.2021.05.14.17.03.22; Fri, 14 May 2021 17:03:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234769AbhENPar (ORCPT + 99 others); Fri, 14 May 2021 11:30:47 -0400 Received: from frasgout.his.huawei.com ([185.176.79.56]:3077 "EHLO frasgout.his.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233842AbhENPah (ORCPT ); Fri, 14 May 2021 11:30:37 -0400 Received: from fraeml714-chm.china.huawei.com (unknown [172.18.147.200]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4FhXKp2mG7z6rmKT; Fri, 14 May 2021 23:21:02 +0800 (CST) Received: from roberto-ThinkStation-P620.huawei.com (10.204.62.217) by fraeml714-chm.china.huawei.com (10.206.15.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Fri, 14 May 2021 17:29:24 +0200 From: Roberto Sassu To: , CC: , , , Roberto Sassu Subject: [PATCH v7 09/12] evm: Deprecate EVM_ALLOW_METADATA_WRITES Date: Fri, 14 May 2021 17:27:50 +0200 Message-ID: <20210514152753.982958-10-roberto.sassu@huawei.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210514152753.982958-1-roberto.sassu@huawei.com> References: <20210514152753.982958-1-roberto.sassu@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.204.62.217] X-ClientProxiedBy: lhreml753-chm.china.huawei.com (10.201.108.203) To fraeml714-chm.china.huawei.com (10.206.15.33) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch deprecates the usage of EVM_ALLOW_METADATA_WRITES, as it is no longer necessary. All the issues that prevent the usage of EVM portable signatures just with a public key loaded have been solved. This flag will remain available for a short time to ensure that users are able to use EVM without it. Signed-off-by: Roberto Sassu --- Documentation/ABI/testing/evm | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Documentation/ABI/testing/evm b/Documentation/ABI/testing/evm index 2243b72e4110..553fd8a33e56 100644 --- a/Documentation/ABI/testing/evm +++ b/Documentation/ABI/testing/evm @@ -24,7 +24,7 @@ Description: 1 Enable digital signature validation 2 Permit modification of EVM-protected metadata at runtime. Not supported if HMAC validation and - creation is enabled. + creation is enabled (deprecated). 31 Disable further runtime modification of EVM policy === ================================================== @@ -47,7 +47,13 @@ Description: will enable digital signature validation, permit modification of EVM-protected metadata and - disable all further modification of policy + disable all further modification of policy. This option is now + deprecated in favor of:: + + echo 0x80000002 >/evm + + as the outstanding issues that prevent the usage of EVM portable + signatures have been solved. Echoing a value is additive, the new value is added to the existing initialization flags. -- 2.25.1