Przeglądaj źródła

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>
Simon Dawson 13 lat temu
rodzic
commit
0e8dafcb3e
1 zmienionych plików z 4 dodań i 0 usunięć
  1. 4 0
      package/sudo/sudo.mk

+ 4 - 0
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))