summaryrefslogtreecommitdiff
path: root/include/linux/sunrpc
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@fys.uio.no>2004-03-13 11:43:28 -0500
committerTrond Myklebust <trond.myklebust@fys.uio.no>2004-03-13 11:43:28 -0500
commit0e4596491ceef70d34456531e09f677ff56b13a3 (patch)
treec005d1358c0e01c831d52211e968cbac0edbb2cc /include/linux/sunrpc
parentd55e1a05ed4ffe8fcbe388e98639dd4578b7296a (diff)
RPC: Ensure that we have the correct capabilities when binding a socket to a reserved
port. Fixes a privilege bug when CONFIG_SECURITY is set. RPC: When trying to reconnect to a TCP port, try to bind() to the last used port number in order to ensure that the servers NFS replay cache recognizes this as being the same mount as before.
Diffstat (limited to 'include/linux/sunrpc')
-rw-r--r--include/linux/sunrpc/xprt.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/sunrpc/xprt.h b/include/linux/sunrpc/xprt.h
index a352a71ecdcb..1ffa8a74d279 100644
--- a/include/linux/sunrpc/xprt.h
+++ b/include/linux/sunrpc/xprt.h
@@ -168,6 +168,11 @@ struct rpc_xprt {
unsigned long tcp_copied, /* copied to request */
tcp_flags;
/*
+ * Connection of sockets
+ */
+ struct work_struct sock_connect;
+ unsigned short port;
+ /*
* Disconnection of idle sockets
*/
struct work_struct task_cleanup;