mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-19 21:58:04 +00:00
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:
parent
cf8483cb4f
commit
2bf22b1fb7
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user