[Buildroot] [PATCH 4/4] package/iputils: fix build without setcap

Petr Vorel petr.vorel at gmail.com
Sun Jun 9 21:45:32 UTC 2019


Hi,

> On 09/06/2019 11:38, Fabrice Fontaine wrote:
> > Fixes:
> >  - http://autobuild.buildroot.org/results/711718ecf20d6cc28953e089a6e5516cfb4b9031

> > Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>

>  All four applied to master, thanks.

>  I have a question about this one though...

...
> > ++++ b/meson.build
> > +@@ -221,10 +221,13 @@ config_h = configure_file(
> > + setcap = find_program('setcap', '/usr/sbin/setcap', '/sbin/setcap', required : false)

>  Clearly, the setcap from the host is not relevant for us...

>  I haven't checked, but I assume this would be used to give the executables the
> appropriate capabilities for non-root usage at installation time.

>  So, three questions:

> 1. Shouldn't we do the same with an IPUTILS_PERMISSIONS setting?
I removed IPUTILS_PERMISSIONS in 9ffcd9279e ("package/iputils: bump to version s20190515"),
but it looks like it's better to use it (thus we don't depend on /sbin/setcap).

> 2. Does this interact in any way with USE_CAP?
No.

> > + if get_option('NO_SETCAP_OR_SUID')

> 3. Shouldn't we set this option, since we probably don't want to use
> /sbin/setcap, ever?
IMHO yes.

>  Regards,
>  Arnout

Kind regards,
Petr



More information about the buildroot mailing list