iputils: install ping, ping6, traceroute6 with setuid root

these utilities need to run with uid 0 to be useful. Thus,
install them setuid root like other distros do, too.

Signed-off-by: Carsten Wolff <carsten@wolffcarsten.de>
[use INSTALL_SUID macro]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
Carsten Wolff 2018-04-08 21:39:10 +02:00 committed by Jo-Philipp Wich
parent cf8483cb4f
commit 2bf22b1fb7

View File

@ -144,12 +144,12 @@ endef
define Package/iputils-ping/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/ping $(1)/usr/bin/
$(INSTALL_SUID) $(PKG_BUILD_DIR)/ping $(1)/usr/bin/
endef
define Package/iputils-ping6/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/ping6 $(1)/usr/bin/
$(INSTALL_SUID) $(PKG_BUILD_DIR)/ping6 $(1)/usr/bin/
endef
define Package/iputils-tftpd/install
@ -169,7 +169,7 @@ endef
define Package/iputils-traceroute6/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/traceroute6 $(1)/usr/bin/
$(INSTALL_SUID) $(PKG_BUILD_DIR)/traceroute6 $(1)/usr/bin/
endef
$(eval $(call BuildPackage,iputils-arping))