]> git.neil.brown.name Git - history.git/commit
[PATCH] Fix NFS locking over TCP
authorTrond Myklebust <trond.myklebust@fys.uio.no>
Thu, 10 Oct 2002 05:50:19 +0000 (22:50 -0700)
committerLinus Torvalds <torvalds@penguin.transmeta.com>
Thu, 10 Oct 2002 05:50:19 +0000 (22:50 -0700)
commit23288376f61ebead762d32466456be114030f3cf
treede6871ced030358b755731c73231b7f20f444067
parent63a5ba4276af966c01116ac1e14e82be66f1f133
[PATCH] Fix NFS locking over TCP

The 2.5.x RPC code is currently broken in that it demands that all
tasks that call xprt_create_proto() in order to open a TCP socket must
have CAP_NET_BIND_SERVICE capabilities, and must bind to a privileged
port.

This breaks the NLM locking code and its use of the call_bind() RPC
portmapper lookup feature.

This patch allows the built-in portmapper client to use unbound TCP
sockets if the user does not have the necessary capabilities.
include/linux/sunrpc/xprt.h
net/sunrpc/xprt.c