From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id 032F11FF168 for ; Tue, 26 Nov 2024 15:28:48 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id A38403B05; Tue, 26 Nov 2024 15:28:47 +0100 (CET) From: Hannes Laimer To: pbs-devel@lists.proxmox.com Date: Tue, 26 Nov 2024 15:28:40 +0100 Message-Id: <20241126142840.136533-1-h.laimer@proxmox.com> X-Mailer: git-send-email 2.39.5 MIME-Version: 1.0 X-SPAM-LEVEL: Spam detection results: 0 AWL -0.123 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment POISEN_SPAM_PILL 0.1 Meta: its spam POISEN_SPAM_PILL_1 0.1 random spam to be learned in bayes POISEN_SPAM_PILL_3 0.1 random spam to be learned in bayes RCVD_IN_VALIDITY_CERTIFIED_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_RPBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_SAFE_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [datastore.rs] Subject: [pbs-devel] [PATCH proxmox-backup v2] api: add Sys.Modify on /system/disks as permission to endpoints handling removable datastores X-BeenThere: pbs-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Backup Server development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Proxmox Backup Server development discussion Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: pbs-devel-bounces@lists.proxmox.com Sender: "pbs-devel" U3VnZ2VzdGVkLWJ5OiBGYWJpYW4gR3LDvG5iaWNobGVyIDxmLmdydWVuYmljaGxlckBwcm94bW94 LmNvbT4KU2lnbmVkLW9mZi1ieTogSGFubmVzIExhaW1lciA8aC5sYWltZXJAcHJveG1veC5jb20+ Ci0tLQpjaGFuZ2VzIHNpbmNlIHYxOgogKiBjb25maWc6IGNyZWF0ZS9kZWxldGU6IG9ubHkgY2hl Y2sgZm9yIFN5cy5Nb2RpZnkgb24gL3N5c3RlbS9kaXNrcyBpZgogICAgcmVtb3ZhYmxlCgogc3Jj L2FwaTIvYWRtaW4vZGF0YXN0b3JlLnJzICB8IDEyICsrKysrKysrKy0tLQogc3JjL2FwaTIvY29u ZmlnL2RhdGFzdG9yZS5ycyB8IDEzICsrKysrKysrKysrKy0KIDIgZmlsZXMgY2hhbmdlZCwgMjEg aW5zZXJ0aW9ucygrKSwgNCBkZWxldGlvbnMoLSkKCmRpZmYgLS1naXQgYS9zcmMvYXBpMi9hZG1p bi9kYXRhc3RvcmUucnMgYi9zcmMvYXBpMi9hZG1pbi9kYXRhc3RvcmUucnMKaW5kZXggMWM5Mzli YzIwLi5jYWU3ZWI4OWMgMTAwNjQ0Ci0tLSBhL3NyYy9hcGkyL2FkbWluL2RhdGFzdG9yZS5ycwor KysgYi9zcmMvYXBpMi9hZG1pbi9kYXRhc3RvcmUucnMKQEAgLTQ1LDcgKzQ1LDcgQEAgdXNlIHBi c19hcGlfdHlwZXM6OnsKICAgICBCQUNLVVBfVFlQRV9TQ0hFTUEsIENBVEFMT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VzZXJfaW5mbyA9IENhY2hlZFVz ZXJJbmZvOjpuZXcoKT87CisgICAgICAgIHVzZXJfaW5mby5jaGVja19wcml2cygmYXV0aF9pZCwg Jlsic3lzdGVtIiwgImRpc2tzIl0sIFBSSVZfU1lTX01PRElGWSwgZmFsc2UpPzsKKyAgICB9CisK ICAgICBsZXQgbXV0IHBydW5lX2pvYl9jb25maWcgPSBOb25lOwogICAgIGlmIGNvbmZpZy5rZWVw LmtlZXBzX3NvbWV0aGluZygpIHx8ICFoYXNfcHJ1bmVfam9iKCZjb25maWcubmFtZSk/IHsKICAg ICAgICAgcHJ1bmVfam9iX2NvbmZpZyA9IGNvbmZpZy5wcnVuZV9zY2hlZHVsZS5hc19yZWYoKS5t YXAofHNjaGVkdWxlfCB7CkBAIC01ODAsNiArNTg1LDEyIEBAIHB1YiBhc3luYyBmbiBkZWxldGVf ZGF0YXN0b3JlKAogCiAgICAgbGV0IHN0b3JlX2NvbmZpZzogRGF0YVN0b3JlQ29uZmlnID0gY29u ZmlnLmxvb2t1cCgiZGF0YXN0b3JlIiwgJm5hbWUpPzsKIAorICAgIGlmIHN0b3JlX2NvbmZpZy5i YWNraW5nX2RldmljZS5pc19zb21lKCkgeworICAgICAgICBsZXQgYXV0aF9pZDogQXV0aGlkID0g cnBjZW52LmdldF9hdXRoX2lkKCkudW53cmFwKCkucGFyc2UoKT87CisgICAgICAgIGxldCB1c2Vy X2luZm8gPSBDYWNoZWRVc2VySW5mbzo6bmV3KCk/OworICAgICAgICB1c2VyX2luZm8uY2hlY2tf cHJpdnMoJmF1dGhfaWQsICZbInN5c3RlbSIsICJkaXNrcyJdLCBQUklWX1NZU19NT0RJRlksIGZh bHNlKT87CisgICAgfQorCiAgICAgaWYgZGVzdHJveV9kYXRhICYmIGdldF9kYXRhc3RvcmVfbW91 bnRfc3RhdHVzKCZzdG9yZV9jb25maWcpID09IFNvbWUoZmFsc2UpIHsKICAgICAgICAgaHR0cF9i YWlsISgKICAgICAgICAgICAgIEJBRF9SRVFVRVNULAotLSAKMi4zOS41CgoKCl9fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCnBicy1kZXZlbCBtYWlsaW5nIGxp c3QKcGJzLWRldmVsQGxpc3RzLnByb3htb3guY29tCmh0dHBzOi8vbGlzdHMucHJveG1veC5jb20v Y2dpLWJpbi9tYWlsbWFuL2xpc3RpbmZvL3Bicy1kZXZlbAo=