]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
iputils: fix ping and traceroute6 executable permissions
authorEinar Jon Gunnarsson <tolvupostur@gmail.com>
Sat, 13 Jan 2018 20:19:42 +0000 (21:19 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Wed, 31 Jan 2018 07:07:05 +0000 (08:07 +0100)
The iputils executables are installed without the setuid bit set,
which prevents some programs from working.

This patch adds a permission table to fix the permissions of the ping
and traceroute6 executables.

Signed-off-by: Einar Jon Gunnarsson <tolvupostur@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
(cherry picked from commit b0e2d00289eeb1a7201ba49e5cedfd3175f92140)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/iputils/iputils.mk

index 21f5dcbe06e6346796d3bbbfbf41f316274b7a4d..d3a12ac62caddbd0b6fb9da04a583fb92c8c8758 100644 (file)
@@ -76,4 +76,9 @@ define IPUTILS_INSTALL_TARGET_CMDS
        $(INSTALL) -D -m 755 $(@D)/traceroute6 $(TARGET_DIR)/bin/traceroute6
 endef
 
+define IPUTILS_PERMISSIONS
+       /bin/ping        f 4755 0 0 - - - - -
+       /bin/traceroute6 f 4755 0 0 - - - - -
+endef
+
 $(eval $(generic-package))