Eric Paris ee58681195 network: tcp_connect should return certain errors up the stack
The current tcp_connect code completely ignores errors from sending an skb.
This makes sense in many situations (like -ENOBUFFS) but I want to be able to
immediately fail connections if they are denied by the SELinux netfilter hook.
Netfilter does not normally return ECONNREFUSED when it drops a packet so we
respect that error code as a final and fatal error that can not be recovered.

Based-on-patch-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Eric Paris <eparis@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2010-11-17 10:54:35 -08:00
..
2010-09-23 14:33:39 -07:00
2010-02-22 16:20:22 -08:00
2010-10-25 13:09:45 -07:00
2010-10-27 11:37:33 -07:00
2010-09-23 14:33:39 -07:00
2010-06-28 23:24:29 -07:00
2010-02-22 16:20:22 -08:00
2010-11-10 12:12:00 -08:00
2010-08-19 00:08:30 -07:00
2010-06-26 22:00:03 -07:00
2010-11-10 12:12:00 -08:00
2009-03-02 03:00:15 -08:00
2009-03-02 03:00:15 -08:00
2010-11-10 12:12:00 -08:00
2010-09-23 14:33:39 -07:00
2009-05-25 22:44:59 -07:00
2010-09-23 14:33:39 -07:00
2010-10-27 11:37:32 -07:00
2010-11-16 11:17:43 -08:00
2010-07-12 12:57:54 -07:00
2010-07-12 12:57:54 -07:00