linux_old1/fs/afs
Eric W. Biederman 881d966b48 [NET]: Make the device list and device lookups per namespace.
This patch makes most of the generic device layer network
namespace safe.  This patch makes dev_base_head a
network namespace variable, and then it picks up
a few associated variables.  The functions:
dev_getbyhwaddr
dev_getfirsthwbytype
dev_get_by_flags
dev_get_by_name
__dev_get_by_name
dev_get_by_index
__dev_get_by_index
dev_ioctl
dev_ethtool
dev_load
wireless_process_ioctl

were modified to take a network namespace argument, and
deal with it.

vlan_ioctl_set and brioctl_set were modified so their
hooks will receive a network namespace argument.

So basically anthing in the core of the network stack that was
affected to by the change of dev_base was modified to handle
multiple network namespaces.  The rest of the network stack was
simply modified to explicitly use &init_net the initial network
namespace.  This can be fixed when those components of the network
stack are modified to handle multiple network namespaces.

For now the ifindex generator is left global.

Fundametally ifindex numbers are per namespace, or else
we will have corner case problems with migration when
we get that far.

At the same time there are assumptions in the network stack
that the ifindex of a network device won't change.  Making
the ifindex number global seems a good compromise until
the network stack can cope with ifindex changes when
you change namespaces, and the like.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2007-10-10 16:49:10 -07:00
..
Makefile AFS: implement file locking 2007-07-16 09:05:43 -07:00
afs.h AFS: implement file locking 2007-07-16 09:05:43 -07:00
afs_cm.h [AFS]: Implement the CB.InitCallBackState3 operation. 2007-04-26 15:58:49 -07:00
afs_fs.h AFS: implement file locking 2007-07-16 09:05:43 -07:00
afs_vl.h [AF_RXRPC]: Make the in-kernel AFS filesystem use AF_RXRPC. 2007-04-26 15:55:03 -07:00
cache.c [AF_RXRPC]: Make the in-kernel AFS filesystem use AF_RXRPC. 2007-04-26 15:55:03 -07:00
cache.h [AFS]: Clean up the AFS sources 2007-04-26 15:49:28 -07:00
callback.c AFS: implement file locking 2007-07-16 09:05:43 -07:00
cell.c Detach sched.h from mm.h 2007-05-21 09:18:19 -07:00
cmservice.c [AFS]: Fix memory leak in SRXAFSCB_GetCapabilities 2007-05-03 03:27:39 -07:00
dir.c AFS: implement file locking 2007-07-16 09:05:43 -07:00
file.c AFS: implement file locking 2007-07-16 09:05:43 -07:00
flock.c AFS: fix file locking 2007-07-31 15:39:40 -07:00
fsclient.c AFS: implement file locking 2007-07-16 09:05:43 -07:00
inode.c Detach sched.h from mm.h 2007-05-21 09:18:19 -07:00
internal.h AFS: implement file locking 2007-07-16 09:05:43 -07:00
main.c AFS: implement file locking 2007-07-16 09:05:43 -07:00
misc.c AFS: implement file locking 2007-07-16 09:05:43 -07:00
mntpt.c afs: mntput called before dput 2007-09-11 17:21:19 -07:00
netdevices.c [NET]: Make the device list and device lookups per namespace. 2007-10-10 16:49:10 -07:00
proc.c Make AFS use seq_list_xxx helpers 2007-07-16 09:05:41 -07:00
rxrpc.c AFS: Use patched rxrpc_kernel_send_data() correctly 2007-07-20 08:54:14 -07:00
security.c Detach sched.h from mm.h 2007-05-21 09:18:19 -07:00
server.c AFS: AFS fixups 2007-05-09 12:30:50 -07:00
super.c mm: Remove slab destructors from kmem_cache_create(). 2007-07-20 10:11:58 +09:00
vlclient.c [AFS]: Add security support. 2007-04-26 15:57:07 -07:00
vlocation.c Detach sched.h from mm.h 2007-05-21 09:18:19 -07:00
vnode.c AFS: drop explicit extern 2007-07-16 09:05:43 -07:00
volume.c Detach sched.h from mm.h 2007-05-21 09:18:19 -07:00
write.c AFS: Fix afs_prepare_write() 2007-05-16 21:19:15 -07:00