Skip to contentSkip to conversation

sudo: fix main executable permissions

PATCH New spdawson at gmail.com 1 participant 1 message Aug 4, 2012

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 sudo: fix main executable permissions

From: Simon Dawson <[email protected]>

The sudo executable is installed without the setuid bit set, which prevents sudo from working.

This patch adds a post-install hook to fix the permissions of the sudo executable.

---
v2: Use generic package permissions mechanism, as suggested by Thomas Petazzoni

 package/sudo/sudo.mk |    4 ++++
 1 file changed, 4 insertions(+)
package/sudo/sudo.mk +4 -0
index 9b0ebed..15e06fa 100644
@@ -14,4 +14,8 @@ SUDO_CONF_OPT = \
 		--without-interfaces \
 		--without-pam
 
+define SUDO_PERMISSIONS
+/usr/bin/sudo			 f 4755	0 0 - - - - -
+endef
+
 $(eval $(autotools-package))
Signature · 1 line
1.7.9.5