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 BE6FB1FF0DE for ; Thu, 19 Nov 2026 15:14:38 +0100 (CET) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 2C21E216CF; Thu, 19 Nov 2026 15:14:36 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=genua.de; s=202307; t=1795097656; bh=mpMJaFw/AUNx7yYnl+iZcx3MC9eEVc6QVY3jglIe6NE=; h=Date:From:To:Subject:References:In-Reply-To:From; b=tSlSQEwPJ79DK7umbQfUFibErKMoqNAcYtbNVPKWZ6lEw6pZV857LQWVyl5l1xHHf qcrupnC5ZJ/tMsOOLBjFgiT4/LUTidFCI5LenQ9IG5/4hpNQkVG8hwNXCYPZ3hDIPb fZuQrU9qQWuMVx8yrQsfn8r3dcHiFdpq1Y4UzWzYYdqz9CbEr+akdmecQeVX8hf9Ra t/Y2uxEKjiDI9jaRXfMYbiEK7VrZruraqMLgDNKKQGSMvIeBsqeadYN0danRJgC5qV hZyihiePoCfDVJs1MXBPntGm+RctzPqunWylamHkEdxqNxjEiwWJZdYtP0mIsyxHVD E+F/xVunyoj2g== Date: Thu, 19 Nov 2026 15:14:15 +0100 From: Christian Ludwig To: Subject: [PATCH pve-storage v4 07/20] test: volume access: cover efi-firmware volumes Message-ID: <841fb1e344ff3853ed5d4d8c92cc59dad0d3abaa.1795092172.git.christian_ludwig@genua.de> 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: text/plain; charset="us-ascii" Content-Disposition: inline X-SPAM-LEVEL: Spam detection results: 0 AWL 0.061 Adjusted score from AWL reputation of From: address DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from domain DMARC_PASS -0.1 DMARC pass policy RCVD_IN_DNSWL_NONE -0.0001 Sender listed at https://www.dnswl.org/, no trust 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: 54IAKU4EEI2HYGRCKQ5ELP7PI63WEPKF X-Message-ID-Hash: 54IAKU4EEI2HYGRCKQ5ELP7PI63WEPKF 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-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Check that access is granted based on the content type. Reviewed-by: Fiona Ebner 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 12d5544..e1666d7 100755 --- a/src/test/run_volume_access_tests.pl +++ b/src/test/run_volume_access_tests.pl @@ -21,7 +21,7 @@ my $storage_dir = tempdir(CLEANUP => 1); my $storage_cfg = <<"EOF"; dir: dir path $storage_dir - content vztmpl,snippets,iso,backup,rootdir,images + content vztmpl,snippets,iso,backup,rootdir,images,efi-firmware EOF my $user_cfg = <<'EOF'; @@ -111,6 +111,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