]> git.baikalelectronics.ru Git - kernel.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)
commit6b19f4e335b9f88232a6c915322f5c62b688aa43
treece70eed085bd56c0b1eaffa838ca27bec94e1345
parentdbb9afd87f17f8ea517d8742e6d8be014ca81d98
[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