From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1pFMo3-0005MG-M8 for mharc-grub-devel@gnu.org; Tue, 10 Jan 2023 17:09:19 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pFMo1-0005M5-U6 for grub-devel@gnu.org; Tue, 10 Jan 2023 17:09:18 -0500 Received: from mail-io1-xd2d.google.com ([2607:f8b0:4864:20::d2d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pFMnz-0005Ys-MX for grub-devel@gnu.org; Tue, 10 Jan 2023 17:09:17 -0500 Received: by mail-io1-xd2d.google.com with SMTP id h6so6800739iof.9 for ; Tue, 10 Jan 2023 14:09:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficientek-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=L4WRi6F+3zGX6eGVh+KVJLllPXyGoZKOevKrV9U+gLs=; b=n0rybaDtzhdIx8ImGd/O977iN9tS1i3jffzUgUM/sqqRY1eK2IkCyuRQNmXkOBAKUz VlVOuAeCosnu66VXFb4YgSUdG08WFpUihXL0HTV/kkCQUx0VlVfXnzjt8ID5q0+TT9jH 1icyTO2bkVhLC/gcrLdQNvYqj89V2Zf4SUEb02mHTipAtKCSeU9zWIqiLRPT+p/EvoKr Uq2b7wC5vydA6CWkq0c6rrRVsRfUNDtGSt6VaABXEy5FFFIbf8wKH0pMGTiymA9GSPFw XsGtPwsIr/rCTCh/y1ZhSO1Ib+nNzU0yAJYbHlScSJCpxfoG/Ho/vxqIqbt5HCx4GuvX rHdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=L4WRi6F+3zGX6eGVh+KVJLllPXyGoZKOevKrV9U+gLs=; b=Z4jmv21ervfjqW1biH5T3lq4nLzAdkxNanISdvtQeqNcndeixzAiDiiXUEw9AZao4/ FDxTbwc7U4xr4X2ISWDrcDNpc3N/crzr9sNo5zkNKf5gaySWCRdThvPv/EGy8tk8CI8G GelFw1NvgNqgvBHm5cLXkfF8zGOsnaitxS0S6a03ffLyPhGc2N8nWTxMFlQDlvXhx1n8 L66gmh/MRF05fPYr+MAYczfHjLp8ZJBjlswCzPf69cS+0SjhcQPyA8P1ouoaLDgLYE3p jFSTci4g54C0HWWWnNwqWlukFpLOnawE86LUBGth5FaAlSt2OunulXon+FFjBGcA4oSZ O7mw== X-Gm-Message-State: AFqh2krt2BB5VGncd7bIMBJ+oqdkMzaPV9RZLsbUCPoCkDqS0Cpx6wxp zKBfQZFI4q4qZyM8JD9R6xHVjeMMNpYZfbgt X-Google-Smtp-Source: AMrXdXvYR//+979a3/sDIhMMtauCRNVhOAUZ2nW+VUtOg6/VWgidfwaFesje7Qi7QxALpU5eNGsUMQ== X-Received: by 2002:a05:6602:370a:b0:6ed:a708:7ed6 with SMTP id bh10-20020a056602370a00b006eda7087ed6mr48771310iob.9.1673388553512; Tue, 10 Jan 2023 14:09:13 -0800 (PST) Received: from crass-HP-ZBook-15-G2.lan ([199.254.238.56]) by smtp.gmail.com with ESMTPSA id c3-20020a029603000000b0038ac01fb3bcsm3980811jai.14.2023.01.10.14.09.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Jan 2023 14:09:12 -0800 (PST) From: Glenn Washburn To: grub-devel@gnu.org, Daniel Kiper Cc: Patrick Steinhardt , Glenn Washburn Subject: [PATCH 0/6] Cryptomount testing Date: Tue, 10 Jan 2023 16:08:54 -0600 Message-Id: <20230110220900.1248367-1-development@efficientek.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::d2d; envelope-from=development@efficientek.com; helo=mail-io1-xd2d.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jan 2023 22:09:18 -0000 This patch series adds a variety of functional cryptomount LUKS1/2 tests by creating a LUKS container on the host and verifying that data inside can be read accurately from a virtualized GRUB. This should be especially useful when we eventually get around to upgrading the gcrypt library. Glenn Glenn Washburn (6): grub-shell: Set exit status to qemu exit status grub-shell: Only cleanup working directory file if QEMU does not fail or timeout grub-shell: Allow specifying non-default trim line contents grub-shell: Trim line should always be matched from the beginning of the line grub-shell: Add halt_cmd variable to testcase namespace tests: Add cryptomount functional test Makefile.util.def | 12 + tests/grub_cmd_cryptomount.in | 185 ++++++++++++++ tests/util/grub-shell-luks-tester.in | 366 +++++++++++++++++++++++++++ tests/util/grub-shell.in | 49 +++- 4 files changed, 600 insertions(+), 12 deletions(-) create mode 100644 tests/grub_cmd_cryptomount.in create mode 100644 tests/util/grub-shell-luks-tester.in -- 2.34.1