|author||Eric W. Biederman <email@example.com>||2007-09-12 12:57:33 +0200|
|committer||David S. Miller <firstname.lastname@example.org>||2007-10-10 16:49:07 -0700|
|parent||[NET]: Make socket creation namespace safe. (diff)|
[NET]: Initialize the network namespace of network devices.
Except for carefully selected pseudo devices all network interfaces should start out in the initial network namespace. Ultimately it will be register_netdev that examines what dev->nd_net is set to and places a device in a network namespace. This patch modifies alloc_netdev to initialize the network namespace a device is in with the initial network namespace. This gets it right for the vast majority of devices so their drivers need not be modified and for those few pseudo devices that need something different they can change this parameter before calling register_netdevice. The network namespace parameter on a network device is not reference counted as the devices are inside of a network namespace and cannot remain in that namespace past the lifetime of the network namespace. Signed-off-by: Eric W. Biederman <email@example.com> Signed-off-by: David S. Miller <firstname.lastname@example.org>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions