summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Dawson <spdawson@gmail.com>2012-08-04 20:11:01 (GMT)
committer Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2012-08-04 21:43:54 (GMT)
commit0e8dafcb3e1ddb7935c1c8c305e7e5598be30315 (patch)
treef2391af5a4ee4935b1d0b9f299702ccb74ba2b0f
parentb6d7ce7e021e16f7ab5964c5b5e6e0d0c7657c37 (diff)
downloadbuildroot-0e8dafcb3e1ddb7935c1c8c305e7e5598be30315.tar.gz
buildroot-0e8dafcb3e1ddb7935c1c8c305e7e5598be30315.tar.bz2
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 <spdawson@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/sudo/sudo.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/sudo/sudo.mk b/package/sudo/sudo.mk
index 9b0ebed..15e06fa 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))