From patchwork Tue Aug 9 06:47:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ivanhu X-Patchwork-Id: 1664763 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=canonical.com header.i=@canonical.com header.a=rsa-sha256 header.s=20210705 header.b=gr6rP0el; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=fwts-devel-bounces@lists.ubuntu.com; receiver=) Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4M23YP0nddz9s5W for ; Tue, 9 Aug 2022 16:48:07 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1oLJ20-00089k-D2; Tue, 09 Aug 2022 06:48:00 +0000 Received: from smtp-relay-canonical-1.internal ([10.131.114.174] helo=smtp-relay-canonical-1.canonical.com) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1oLJ1y-00089d-K2 for fwts-devel@lists.ubuntu.com; Tue, 09 Aug 2022 06:47:58 +0000 Received: from canonical.com (118-163-61-247.hinet-ip.hinet.net [118.163.61.247]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-canonical-1.canonical.com (Postfix) with ESMTPSA id 96D984158C for ; Tue, 9 Aug 2022 06:47:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1660027678; bh=2ua4KBXjC4WqBuy1CL+xieAd2ic9zbCwwZIsWTvwN1A=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=gr6rP0eljOl3oqIXkh7eCkMmMYACBmKeKbZbin19AxQNu8PlXnUfw7bOyhNGS/j2O qZD/eHy/Bj9Gjo5VJ0nzA6vSLsz+Okaq4Trst3swCQ4X0zz7niqiS+q1LYMVPEuJj0 BQ0EW6e4Kqet36jmn4B8ZYFLr5uxdaX9S9SObT9cFWBx1Yaa8HuY3Zj27SZdxGVDTT KfBbUEpO9dYwSQERId9dEr8U2Bd+5vhy5XzmE5MRBBYyLUJNN80rp/mlA6EvEAdOKm 8Zs2touN3Yz2WixSOphvmU7tco/ylryuE5het8VX4Zmxgy8e270615/hPBcmdP0Blo jYqH0somCeL7g== From: Ivan Hu To: fwts-devel@lists.ubuntu.com Subject: [PATCH] uefi: securebootcert: fix the attribute set for AuditMode and DeployedMode Date: Tue, 9 Aug 2022 14:47:54 +0800 Message-Id: <20220809064754.26635-1-ivan.hu@canonical.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-BeenThere: fwts-devel@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Firmware Test Suite Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: fwts-devel-bounces@lists.ubuntu.com Sender: "fwts-devel" BugLink: https://bugs.launchpad.net/fwts/+bug/1984042 Signed-off-by: Ivan Hu --- src/uefi/securebootcert/securebootcert.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/uefi/securebootcert/securebootcert.c b/src/uefi/securebootcert/securebootcert.c index 0fcc771c..6bf40505 100644 --- a/src/uefi/securebootcert/securebootcert.c +++ b/src/uefi/securebootcert/securebootcert.c @@ -558,8 +558,7 @@ static int securebootcert_test2(fwts_framework *fw) { int ret; uint8_t data = 0; - static uint32_t attributes = FWTS_UEFI_VAR_NON_VOLATILE | - FWTS_UEFI_VAR_BOOTSERVICE_ACCESS | + static uint32_t attributes = FWTS_UEFI_VAR_BOOTSERVICE_ACCESS | FWTS_UEFI_VAR_RUNTIME_ACCESS; if (!(var_found & VAR_AUDITMODE_FOUND)) {