Re: [patch 2/6] [Network namespace] Network device sharing by view
- From: ebiederm@xxxxxxxxxxxx (Eric W. Biederman)
- Date: Wed, 28 Jun 2006 08:39:38 -0600
jamal <hadi@xxxxxxxxxx> writes:
On Wed, 2006-28-06 at 15:36 +0200, Herbert Poetzl wrote:
note: personally I'm absolutely not against virtualizing
the device names so that each guest can have a separate
name space for devices, but there should be a way to
'see' _and_ 'identify' the interfaces from outside
(i.e. host or spectator context)
Makes sense for the host side to have naming convention tied
to the guest. Example as a prefix: guest0-eth0. Would it not
be interesting to have the host also manage these interfaces
via standard tools like ip or ifconfig etc? i.e if i admin up
guest0-eth0, then the user in guest0 will see its eth0 going
up.
Anyways, interesting discussion.
Please no.
We really want the fundamental rule that a network device
is tied to a single namespace, and that a socket is tied
to a single namespace. If those two conditions are met
we don't have to tag packets with a namespace identifier.
We only have to modify hash table lookups in the networking
code to look at a namespace tag in addition to the rest because
that is less expensive than allocating new hash tables.
Currently with a network device only being usable in one
network namespace we have the situation where we can
fairly safely give a guest CAP_NET_ADMIN without problems.
In addition currently nothing in the implementation knows about
the hierarchical structure of how the network namespace will be
used. To allow ifconfig guest0-eth0 to work would require
understanding the hierarchical structure and places serious questions
on how safe we can make CAP_NET_ADMIN.
Now I am open to radically different designs if they allow the
implementation cost to be lower and they have clean semantics,
and don't wind up being an ugly unmaintainable wart on the linux
networking stack. The only route I could imagine such a thing coming
from is something like tagging flows, in some netfiler like way.
Which might allow ifconfig guest-eth0 from the host without problems.
But I have not seen such a design.
Eric
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [patch 2/6] [Network namespace] Network device sharing by view
- From: Sam Vilain
- Re: [patch 2/6] [Network namespace] Network device sharing by view
- References:
- Re: [patch 2/6] [Network namespace] Network device sharing by view
- From: Andrey Savochkin
- Re: [patch 2/6] [Network namespace] Network device sharing by view
- From: Daniel Lezcano
- Re: [patch 2/6] [Network namespace] Network device sharing by view
- From: Eric W. Biederman
- Re: [patch 2/6] [Network namespace] Network device sharing by view
- From: Herbert Poetzl
- Re: [patch 2/6] [Network namespace] Network device sharing by view
- From: Eric W. Biederman
- Re: [patch 2/6] [Network namespace] Network device sharing by view
- From: Ben Greear
- Re: [patch 2/6] [Network namespace] Network device sharing by view
- From: Herbert Poetzl
- Re: [patch 2/6] [Network namespace] Network device sharing by view
- From: Dave Hansen
- Re: [patch 2/6] [Network namespace] Network device sharing by view
- From: Alexey Kuznetsov
- Re: [patch 2/6] [Network namespace] Network device sharing by view
- From: Eric W. Biederman
- Re: [patch 2/6] [Network namespace] Network device sharing by view
- From: Herbert Poetzl
- Re: [patch 2/6] [Network namespace] Network device sharing by view
- From: jamal
- Re: [patch 2/6] [Network namespace] Network device sharing by view
- Prev by Date: Re: [Suspend2][ 0/9] Extents support.
- Next by Date: Re: [PATCH 20/20] honor r/w changes at do_remount() time
- Previous by thread: Re: [patch 2/6] [Network namespace] Network device sharing by view
- Next by thread: Re: [patch 2/6] [Network namespace] Network device sharing by view
- Index(es):
Relevant Pages
|
|