android_kernel_xiaomi_sm8350/net/ipv4
Eric W. Biederman 1b8d7ae42d [NET]: Make socket creation namespace safe.
This patch passes in the namespace a new socket should be created in
and has the socket code do the appropriate reference counting.  By
virtue of this all socket create methods are touched.  In addition
the socket create methods are modified so that they will fail if
you attempt to create a socket in a non-default network namespace.

Failing if we attempt to create a socket outside of the default
network namespace ensures that as we incrementally make the network stack
network namespace aware we will not export functionality that someone
has not audited and made certain is network namespace safe.
Allowing us to partially enable network namespaces before all of the
exotic protocols are supported.

Any protocol layers I have missed will fail to compile because I now
pass an extra parameter into the socket creation code.

[ Integrated AF_IUCV build fixes from Andrew Morton... -DaveM ]

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2007-10-10 16:49:07 -07:00
..
ipvs [NET]: Make /proc/net per network namespace 2007-10-10 16:49:06 -07:00
netfilter [NET]: Make /proc/net per network namespace 2007-10-10 16:49:06 -07:00
af_inet.c [NET]: Make socket creation namespace safe. 2007-10-10 16:49:07 -07:00
ah4.c
arp.c [NET]: Make /proc/net per network namespace 2007-10-10 16:49:06 -07:00
cipso_ipv4.c
datagram.c
devinet.c [IPV4] devinet: show all addresses assigned to interface 2007-09-11 10:41:04 +02:00
esp4.c
fib_frontend.c
fib_hash.c [NET]: Make /proc/net per network namespace 2007-10-10 16:49:06 -07:00
fib_lookup.h
fib_rules.c
fib_semantics.c
fib_trie.c [NET]: Make /proc/net per network namespace 2007-10-10 16:49:06 -07:00
icmp.c
igmp.c [NET]: Make /proc/net per network namespace 2007-10-10 16:49:06 -07:00
inet_connection_sock.c
inet_diag.c [NET]: DIV_ROUND_UP cleanup (part two) 2007-10-10 16:48:37 -07:00
inet_hashtables.c
inet_lro.c [NET]: Generic Large Receive Offload for TCP traffic 2007-10-10 16:47:46 -07:00
inet_timewait_sock.c [NET]: DIV_ROUND_UP cleanup (part two) 2007-10-10 16:48:37 -07:00
inetpeer.c
ip_forward.c [IPV4] IPSEC: Omit redirect for tunnelled packet. 2007-10-10 16:48:33 -07:00
ip_fragment.c
ip_gre.c
ip_input.c
ip_options.c
ip_output.c
ip_sockglue.c
ipcomp.c
ipconfig.c [NET]: Make /proc/net per network namespace 2007-10-10 16:49:06 -07:00
ipip.c
ipmr.c [NET]: Make /proc/net per network namespace 2007-10-10 16:49:06 -07:00
Kconfig [NET]: Generic Large Receive Offload for TCP traffic 2007-10-10 16:47:46 -07:00
Makefile [NET]: Generic Large Receive Offload for TCP traffic 2007-10-10 16:47:46 -07:00
netfilter.c
proc.c [NET]: Make /proc/net per network namespace 2007-10-10 16:49:06 -07:00
protocol.c
raw.c [NET]: Make /proc/net per network namespace 2007-10-10 16:49:06 -07:00
route.c [NET]: Make /proc/net per network namespace 2007-10-10 16:49:06 -07:00
syncookies.c
sysctl_net_ipv4.c
tcp_bic.c [TCP]: Remove num_acked>0 checks from cong.ctrl mods pkts_acked 2007-10-10 16:47:55 -07:00
tcp_cong.c
tcp_cubic.c [TCP]: Remove num_acked>0 checks from cong.ctrl mods pkts_acked 2007-10-10 16:47:55 -07:00
tcp_diag.c
tcp_highspeed.c
tcp_htcp.c
tcp_hybla.c
tcp_illinois.c
tcp_input.c [TCP] MIB: Add counters for discarded SACK blocks 2007-10-10 16:48:30 -07:00
tcp_ipv4.c [NET]: Make /proc/net per network namespace 2007-10-10 16:49:06 -07:00
tcp_lp.c
tcp_minisocks.c [TCP]: Move sack_ok access to obviously named funcs & cleanup 2007-10-10 16:48:00 -07:00
tcp_output.c [NET] Cleanup: DIV_ROUND_UP 2007-10-10 16:48:30 -07:00
tcp_probe.c [NET]: Make /proc/net per network namespace 2007-10-10 16:49:06 -07:00
tcp_scalable.c
tcp_timer.c [TCP]: Move sack_ok access to obviously named funcs & cleanup 2007-10-10 16:48:00 -07:00
tcp_vegas.c
tcp_vegas.h
tcp_veno.c
tcp_westwood.c
tcp_yeah.c
tcp.c [NET]: DIV_ROUND_UP cleanup (part two) 2007-10-10 16:48:37 -07:00
tunnel4.c
udp_impl.h [UDP]: Randomize port selection. 2007-10-10 16:48:31 -07:00
udp.c [NET]: Make /proc/net per network namespace 2007-10-10 16:49:06 -07:00
udplite.c [UDP]: Randomize port selection. 2007-10-10 16:48:31 -07:00
xfrm4_input.c
xfrm4_mode_beet.c
xfrm4_mode_transport.c
xfrm4_mode_tunnel.c
xfrm4_output.c
xfrm4_policy.c
xfrm4_state.c
xfrm4_tunnel.c