[pve-devel] [PATCH proxmox-mail-forward] buildsys: set setuid bit in installed proxmox-mail-forward binary

Lukas Wagner l.wagner at proxmox.com
Tue Nov 19 13:12:01 CET 2024


A previous commit removed the part which sets the bit.
Without the bit we cannot read the notification config, because
Postfix invokes forwarding binaries as 'nobody'.

Fixes: 32d813ce44b ("build: properly use cargo wrapper")
Signed-off-by: Lukas Wagner <l.wagner at proxmox.com>
---
 Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Makefile b/Makefile
index 3ac0f8b..e6a7553 100644
--- a/Makefile
+++ b/Makefile
@@ -55,6 +55,7 @@ cargo-build:
 install: cargo-build
 	install -dm755 $(DESTDIR)/usr/bin
 	$(CARGO) install
+	chmod u+s $(DESTDIR)/usr/bin/$(PACKAGE)
 
 .PHONY: upload
 upload: $(DEBS)
-- 
2.39.5





More information about the pve-devel mailing list