From: Carsten Wolff Date: Sun, 8 Apr 2018 19:39:10 +0000 (+0200) Subject: iputils: install ping, ping6, traceroute6 with setuid root X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=2bf22b1fb725b71ca1ec2656be4b020efcc29289;p=openwrt%2Fstaging%2Fneocturne.git 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 [use INSTALL_SUID macro] Signed-off-by: Jo-Philipp Wich --- diff --git a/package/network/utils/iputils/Makefile b/package/network/utils/iputils/Makefile index 344af07afd..03ad7d2031 100644 --- a/package/network/utils/iputils/Makefile +++ b/package/network/utils/iputils/Makefile @@ -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))