sudo: fix main executable permissions
authorSimon Dawson <spdawson@gmail.com>
Sat, 4 Aug 2012 20:11:01 +0000 (21:11 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 4 Aug 2012 21:43:54 +0000 (23:43 +0200)
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.

Signed-off-by: Simon Dawson <spdawson@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/sudo/sudo.mk

index 9b0ebed5717dbb2aef4eaf4a29706e4eda96e127..15e06fa3dcbd0b49366914ece44bb515234de979 100644 (file)
@@ -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))