]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] knfsd: SUNRPC: add a "generic" function to see if the peer uses a secure...
authorChuck Lever <chuck.lever@oracle.com>
Mon, 12 Feb 2007 08:53:37 +0000 (00:53 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 12 Feb 2007 17:48:36 +0000 (09:48 -0800)
commitbcdb81ae29091f6a66369aabfd8324e4a53d05dc
treece70eed085bd56c0b1eaffa838ca27bec94e1345
parentb92503b25c3f794cff5f96626ea3ecba8d10d254
[PATCH] knfsd: SUNRPC: add a "generic" function to see if the peer uses a secure port

The only reason svcsock.c looks at a sockaddr's port is to check whether the
remote peer is connecting from a privileged port.  Refactor this check to hide
processing that is specific to address format.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Cc: Aurelien Charbon <aurelien.charbon@ext.bull.net>
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
net/sunrpc/svcsock.c