Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 487208 - net-misc/netifrc: busybox "ip" applet not compatible with net.lo
Summary: net-misc/netifrc: busybox "ip" applet not compatible with net.lo
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: netifrc (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: netifrc Team
URL:
Whiteboard:
Keywords:
: 506526 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-10-07 13:11 UTC by Patrick Lauer
Modified: 2016-11-27 23:16 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Lauer gentoo-dev 2013-10-07 13:11:43 UTC
* Bringing up network interface lo ...
ip: either "to" is duplicate, or "scope" is garbage
 [ ok ]
 * Bringing up interface lo
 *   Caching network module dependencies
 *   127.0.0.1/8 ...
 [ ok ]
 *   Adding routes
 *     127.0.0.0/8 via 127.0.0.1 ...
 [ ok ]
Comment 1 William Hubbs gentoo-dev 2013-10-07 15:38:24 UTC
I need more information. Which ip command/arguments are not compatible?

Thanks,

William
Comment 2 Patrick Lauer gentoo-dev 2013-10-11 04:36:50 UTC
loopback        29.38|+ ebegin Bringing up network interface lo
loopback        29.38| * Bringing up network interface lo ...+ type ip
loopback        29.39|+ ip addr add 127.0.0.1/8 dev lo brd + scope host
loopback        29.39|ip: RTNETLINK answers: File exists
loopback        29.39|+ ip route add 127.0.0.0/8 dev lo scope host
loopback        29.39|ip: either "to" is duplicate, or "scope" is garbage
loopback        29.39|+ ip link set lo up
loopback        29.39|+ eend 0
loopback        29.39| [ ok ]


(not sure what's happening there ... ?!)
Comment 3 William Hubbs gentoo-dev 2014-04-10 02:28:33 UTC
*** Bug 506526 has been marked as a duplicate of this bug. ***
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2016-10-24 20:42:03 UTC
busybox iproute2 does not support the 'scope' argument in 'ip addr add', but it does support it in the 'ip addr show'.

Worse, there's no --help output that we can use to detect if it's supported or not.

It does seem to support it for both 'addr show' as well as routes.

The bug does go a VERY long way back, but wasn't caught before because of lack of error checking.

baselayout-1.11.15/net-scripts/net.modules.d/iproute2: ip addr add 127.0.0.1/8 dev lo brd + scope host

that's in the old SVN stuff, pre-baselayout2, and the tag dates to 2005/apr/14.
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2016-10-24 20:44:11 UTC
As for an immediate fixing plan, do we actually still NEED to specify 'scope host' manually? I think we should change it to use the kernel's default, and only pass in the scope if the user explicitly sets it themselves.
Comment 6 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2016-10-24 21:23:16 UTC
netifrc:
[master 699636d] net/iproute2: no automatic scope=host on loopback.
 1 file changed, 5 deletions(-)

github/robbat2/openrc:
[loopback-scope 6d60bba] init.d/loopback: drop scope on loopback
 Date: Mon Oct 24 14:19:22 2016 -0700
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 7 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2016-10-24 21:24:01 UTC
https://github.com/OpenRC/openrc/pull/103
Comment 8 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2016-11-27 23:16:47 UTC
This is present in the 0.5 series, and handled in openrc as well.