From: Simon Dawson Date: Sat, 4 Aug 2012 20:11:01 +0000 (+0100) Subject: sudo: fix main executable permissions X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0e8dafcb3e1ddb7935c1c8c305e7e5598be30315;p=buildroot.git sudo: fix main executable permissions 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 Signed-off-by: Thomas Petazzoni --- diff --git a/package/sudo/sudo.mk b/package/sudo/sudo.mk index 9b0ebed571..15e06fa3dc 100644 --- a/package/sudo/sudo.mk +++ b/package/sudo/sudo.mk @@ -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))