[Buildroot] Iputils not setting suid root?
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Fri Jan 12 09:50:22 UTC 2018
Hello,
On Fri, 12 Jan 2018 10:29:35 +0100, Einar Jón wrote:
> I just changed my setup from using busybox to using iputils.
> Now I can't ping/traceroute6 anymore unless I use sudo. Is that normal?
> In my ubuntu the suid bit is set, so I just copied that behaviour, and
> that works.
>
> I added the patch below to package/iputils/iputils.mk to set the permissions.
> Is there any reason why it's not done?
>
> diff --git a/package/iputils/iputils.mk b/package/iputils/iputils.mk
> index b20cd12..13e3389 100644
> --- a/package/iputils/iputils.mk
> +++ b/package/iputils/iputils.mk
> @@ -69,4 +69,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))
That's a bug. Could you submit a proper patch that fixes this ?
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
More information about the buildroot
mailing list