[pve-devel] [PATCH manager 1/2] Fix #1450 : restore setgid bit on pvemailforward binary

Emmanuel Kasper e.kasper at proxmox.com
Tue Jul 18 17:37:27 CEST 2017


When calling chown on a setuid/setgid executable, the
setuid/setgid bits are reset to 0. So ordering matters
here. See chown(2).
---
 debian/rules | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index 9ce61388..dc9375ab 100755
--- a/debian/rules
+++ b/debian/rules
@@ -11,8 +11,8 @@ override_dh_usrlocal:
 
 override_dh_fixperms:
 	dh_fixperms
-	find debian -name 'pvemailforward' -exec chmod 2755 {} +
 	find debian -name 'pvemailforward' -exec chown root:www-data {} +
+	find debian -name 'pvemailforward' -exec chmod 2755 {} +
 	find debian -type d -name 'pveproxy' -exec chown www-data:www-data {} +
 	find debian -type d -name 'pveproxy' -exec chmod 700 {} +
 
-- 
2.11.0





More information about the pve-devel mailing list