userns: make each net (net_ns) belong to a user_ns
Eric W. Biederman authored

The user namespace which creates a new network namespace owns that
namespace and all resources created in it.  This way we can target
capability checks for privileged operations against network resources to
the user_ns which created the network namespace in which the resource
lives.  Privilege to the user namespace which owns the network
namespace, or any parent user namespace thereof, provides the same
privilege to the network resource.

This patch is reworked from a version originally by
Serge E. Hallyn <serge.hallyn@canonical.com>
Acked-by: default avatarSerge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: default avatarEric W. Biederman <ebiederm@xmission.com>
038e7332
Name Last commit Last update
..
802 tokenring: delete all remaining driver support
8021q vlan: allow to change type when no vlan device is hooked on netdev
9p Merge tag 'for-linus-merge-3.7' of git://git.kernel.org/pub/scm/linux/kernel/git/ericvh/v9fs
appletalk userns: Print out socket uids in a user namespace aware fashion.
atm net:atm:fix up ENOIOCTLCMD error handling
ax25 userns: Convert net/ax25 to use kuid_t where appropriate
batman-adv batman-adv: Fix potential broadcast BLA-duplicate-check race condition
bluetooth Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth
bridge bridge: Pull ip header into skb->data before looking into ip header.
caif caif: move the dereference below the NULL test
can sections: fix section conflicts in net/can
ceph Merge branch 'modules-next' of git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux
core userns: make each net (net_ns) belong to a user_ns
dcb netlink: Rename pid to portid to avoid confusion
dccp dccp: fix info leak via getsockopt(DCCP_SOCKOPT_CCID_TX_INFO)
decnet sections: fix section conflicts in net
dns_resolver Merge branch 'modules-next' of git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux
dsa workqueue: deprecate flush[_delayed]_work_sync()
ethernet ipx: move peII functions
ieee802154 net/ieee802154/6lowpan.c: Remove unecessary semicolon
ipv4 tcp: Reject invalid ack_seq to Fast Open sockets
ipv6 ipv6: Set default hoplimit as zero.
ipx userns: Print out socket uids in a user namespace aware fashion.
irda Merge 3.7-rc1 into tty-linus
iucv net: remove skb_orphan_try()
key
l2tp
lapb
llc
mac80211
mac802154
netfilter
netlabel
netlink
netrom
nfc
openvswitch
packet
phonet
rds
rfkill
rose
rxrpc
sched
sctp
sunrpc
tipc
unix
wanrouter
wimax
wireless
x25
xfrm
Kconfig
Makefile
compat.c
nonet.c
socket.c
sysctl_net.c