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) server-digest SHA256) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 47ACA74880 for ; Wed, 2 Jun 2021 12:14:57 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 38EFD9C68 for ; Wed, 2 Jun 2021 12:14:57 +0200 (CEST) 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)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id 2112D9C5B for ; Wed, 2 Jun 2021 12:14:53 +0200 (CEST) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id ECF2C466DE for ; Wed, 2 Jun 2021 12:14:52 +0200 (CEST) From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= To: pbs-devel@lists.proxmox.com Date: Wed, 2 Jun 2021 12:14:38 +0200 Message-Id: <20210602101438.1145922-3-f.gruenbichler@proxmox.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210602101438.1145922-1-f.gruenbichler@proxmox.com> References: <20210602101438.1145922-1-f.gruenbichler@proxmox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.018 Adjusted score from AWL reputation of From: address 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 URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [proxmox.com, control.in] Subject: [pbs-devel] [PATCH bullseye proxmox-backup 2/2] d/control: set R-R-R to run binary d/rules targets as root 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: , X-List-Received-Date: Wed, 02 Jun 2021 10:14:57 -0000 the build still requires root to make helper binaries setuid Signed-off-by: Fabian Grünbichler --- d/control is autogenerated, so if conflicts arise there just ignore that hunk.. Makefile | 2 ++ debian/control | 7 ++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 2ffd2fb8..5d361ff3 100644 --- a/Makefile +++ b/Makefile @@ -92,6 +92,8 @@ build: sed -e '1,/^$$/ ! d' build/debian/control > build/debian/control.src cat build/debian/control.src build/debian/control.in > build/debian/control rm build/debian/control.in build/debian/control.src + # not yet settable via debcargo.toml, required for setuid binaries in `make install` + sed -i -e 's/^Rules-Requires-Root: no/Rules-Requires-Root: binary-targets/g' build/debian/control cp build/debian/control debian/control rm build/Cargo.lock find build/debian -name "*.hint" -delete diff --git a/debian/control b/debian/control index baa2d13f..dfddca90 100644 --- a/debian/control +++ b/debian/control @@ -1,8 +1,8 @@ Source: rust-proxmox-backup Section: admin Priority: optional -Build-Depends: debhelper (>= 11), - dh-cargo (>= 18), +Build-Depends: debhelper (>= 12), + dh-cargo (>= 24), cargo:native, rustc:native, libstd-rust-dev, @@ -106,10 +106,11 @@ Build-Depends: debhelper (>= 11), texlive-xetex , xindy Maintainer: Proxmox Support Team -Standards-Version: 4.4.1 +Standards-Version: 4.5.1 Vcs-Git: git://git.proxmox.com/git/proxmox-backup.git Vcs-Browser: https://git.proxmox.com/?p=proxmox-backup.git;a=summary Homepage: https://www.proxmox.com +Rules-Requires-Root: binary-targets Package: proxmox-backup-server Architecture: any -- 2.30.2