From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [IPv6:2a0f:8001:1:32::40]) by lore.proxmox.com (Postfix) with ESMTPS id 43AE01FF0A7 for ; Mon, 17 Aug 2026 11:36:15 +0200 (CEST) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 06A8D23A80; Mon, 17 Aug 2026 11:36:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=genua.de; s=202307; t=1786958967; bh=x7mqCSUVKQup5ZllJ5Y7TbEGmAKupT+dAgRHgEQGprM=; h=Date:From:To:Subject:References:In-Reply-To:From; b=uTK7hfGZUIf/rSjkfuIwCu63GqhlsPFWDf57SC0QUJTXEvX2DAOn2Lo6ZQRAs/3kK OVcV/N5RMtY7JN00fRAMT3D8dCTtOUBTS6fUDeQdJM28MuY5hRQtCUX1tioWtiXSs/ RS3Cx9Qi7HBhx893KO/WUdBfP914KiFbpRyOTI0gGmPUOUjWH6BhsxLFlKym0oFwcD 62CpUacT2huaKsZj5JM9a0bB30ivghWHZ/BL0US4AH+HQl5R39qCWpj1irXKL/UIfS jzx3QtOqUTGYczRjecIycx+IUbIvyVzdr5R4zihRZ11+I7HjSex1SJ37JYBkJTK6zB C5GUVKsUxLqfQ== Date: Mon, 17 Aug 2026 11:29:26 +0200 From: Christian Ludwig To: , <-b@genua.de>, Subject: [PATCH pve-storage 5/13] Volume access check test for efi-firmware Message-ID: References: MIME-Version: 1.0 In-Reply-To: X-Originating-IP: [192.168.217.185] X-ClientProxiedBy: kch1-mta08.win.genua.de (10.208.16.108) To kch1-mta07.win.genua.de (10.208.16.107) Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg="sha-256"; boundary="----356BDD1EE317DD6E29D178F29B8803E3" X-SPAM-LEVEL: Spam detection results: 0 DKIM_INVALID 0.1 DKIM or DK signature exists, but is not valid DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DMARC_PASS -0.1 DMARC pass policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) SPF_HELO_PASS -0.001 SPF: HELO matches SPF record SPF_PASS -0.001 SPF: sender matches SPF record UNPARSEABLE_RELAY 0.001 Informational: message has unparseable relay lines Message-ID-Hash: SFD6HWGGOSB7WF7WAIGTPJUHDSX72ALO X-Message-ID-Hash: SFD6HWGGOSB7WF7WAIGTPJUHDSX72ALO X-MailFrom: christian_ludwig@genua.de X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Content-Filtered-By: Mailman/MimeDel 3.3.10 X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: ------356BDD1EE317DD6E29D178F29B8803E3 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline Add a test case for an efi-firmware volume to check for it's type. Signed-off-by: Christian Ludwig --- src/test/run_volume_access_tests.pl | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/test/run_volume_access_tests.pl b/src/test/run_volume_access_tests.pl index 3448708..72331e5 100755 --- a/src/test/run_volume_access_tests.pl +++ b/src/test/run_volume_access_tests.pl @@ -15,7 +15,7 @@ use PVE::Storage::Plugin; my $storage_cfg = <<'EOF'; dir: dir path /mnt/pve/dir - content vztmpl,snippets,iso,backup,rootdir,images + content vztmpl,snippets,iso,backup,rootdir,images,efi-firmware EOF my $user_cfg = <<'EOF'; @@ -103,6 +103,13 @@ my @tests = ( 'iso' => 1, }, }, + { + volid => 'dir:efi-firmware/custom-uefi.fd', + denied_users => {}, + allowed_types => { + 'efi-firmware' => 1, + }, + }, { volid => 'dir:111/subvol-111-disk-0.subvol', denied_users => { -- 2.34.1 ------356BDD1EE317DD6E29D178F29B8803E3--