From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 1E261690C9 for ; Fri, 11 Mar 2022 12:25:20 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 96F3B235AD for ; Fri, 11 Mar 2022 12:25:19 +0100 (CET) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [94.136.29.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id 98A2323503 for ; Fri, 11 Mar 2022 12:25:15 +0100 (CET) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 63C6B4628E for ; Fri, 11 Mar 2022 12:25:15 +0100 (CET) From: Oguz Bektas To: pve-devel@lists.proxmox.com Date: Fri, 11 Mar 2022 12:24:52 +0100 Message-Id: <20220311112504.595964-1-o.bektas@proxmox.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.610 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record T_SCC_BODY_TEXT_LINE -0.01 - Subject: [pve-devel] [PATCH v2 access-control++ 00/12] SuperUser privilege X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Mar 2022 11:25:20 -0000 v1->v2: * added some basic docs changes in rest of the patches are in the separate mails. big thanks to Fabian G. for the reviews and answering my questions throughout the series :) it's a complicated series so if i forgot something i'm sorry! note: all the patches on the other repositories depend on the access-control patches to be applied and installed first docs: Oguz Bektas (1): pveum: add SU privilege and SA role pveum.adoc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) qemu-server: Oguz Bektas (2): api: allow SU privileged users to edit root-only options for VM configs api: allow 'skiplock' option to be used by SU privileged users PVE/API2/Qemu.pm | 122 ++++++++++++++++++++++++++++------------------- 1 file changed, 72 insertions(+), 50 deletions(-) manager: Oguz Bektas (4): api: backup: allow SUs to use 'tmpdir', 'dumpdir' and 'script' options api: vzdump: allow SUs to use 'bwlimit' and 'ionice' parameters api: update comment about login prompt for non-root users ui: adapt sensible 'root@pam' checks to SU privilege PVE/API2/Backup.pm | 11 ++++++++--- PVE/API2/Nodes.pm | 2 +- PVE/API2/VZDump.pm | 8 +++++--- www/manager6/dc/Config.js | 2 +- www/manager6/lxc/Options.js | 2 +- www/manager6/lxc/Resources.js | 2 +- www/manager6/window/Migrate.js | 4 ++-- 7 files changed, 19 insertions(+), 12 deletions(-) container: Oguz Bektas (1): fix #2582: api: add checks for 'SuperUser' privilege for root-only options src/PVE/API2/LXC.pm | 15 +++++++-------- src/PVE/API2/LXC/Config.pm | 2 +- src/PVE/API2/LXC/Status.pm | 12 ++++++++---- src/PVE/LXC.pm | 21 ++++++++++++--------- 4 files changed, 28 insertions(+), 22 deletions(-) storage: Oguz Bektas (1): check_volume_access: allow superusers to pass arbitrary fs paths PVE/Storage.pm | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) access-control: Oguz Bektas (3): add "SuperAdministrator" role with the new "SuperUser" privilege api: allow superusers to edit tfa and password settings api: acl: only allow granting SU privilege if user already has it src/PVE/API2/ACL.pm | 9 +++++++++ src/PVE/API2/AccessControl.pm | 6 ++++++ src/PVE/API2/TFA.pm | 7 +++++-- src/PVE/AccessControl.pm | 9 ++++++--- src/PVE/RPCEnvironment.pm | 2 +- 5 files changed, 27 insertions(+), 6 deletions(-) -- 2.30.2