public inbox for linux-nfs@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC] RPCBIND: add anonymous listening socket in addition to named one
@ 2011-12-28 15:17 Stanislav Kinsbursky
  2011-12-28 17:03 ` Chuck Lever
  2011-12-28 18:22 ` bfields
  0 siblings, 2 replies; 15+ messages in thread
From: Stanislav Kinsbursky @ 2011-12-28 15:17 UTC (permalink / raw)
  To: Trond.Myklebust@netapp.com, bfields@fieldses.org
  Cc: linux-nfs@vger.kernel.org

Hello.
I've experienced a problem with registering Lockd service with rpcbind in 
container. My container operates in it's own network namespace context and has 
it's own root. But on service register, kernel tries to connect to named unix 
socket by using rpciod_workqueue. Thus any connect is done with the same 
fs->root, and this leads to that kernel socket, used for registering service 
with local portmapper, will always connect to the same user-space socket 
regardless to fs->root of process, requested register operation.
Possible solution for this problem, which I would like to discuss, is to add one 
more listening socket to rpcbind process. But this one should be anonymous. 
Anonymous unix sockets accept connections only within it's network namespace 
context, so kernel socket connect will be done always to the user-space socket 
in the same network namespace.
Does anyone have any objections to this? Or, probably, better solution for the 
problem?

-- 
Best regards,
Stanislav Kinsbursky

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2012-01-25 16:02 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-28 15:17 [RFC] RPCBIND: add anonymous listening socket in addition to named one Stanislav Kinsbursky
2011-12-28 17:03 ` Chuck Lever
2011-12-28 17:30   ` Stanislav Kinsbursky
2011-12-28 17:59     ` Chuck Lever
2011-12-29 11:48       ` Stanislav Kinsbursky
2011-12-29 16:03         ` Chuck Lever
2011-12-29 16:12           ` Stanislav Kinsbursky
2011-12-29 16:23             ` Chuck Lever
2011-12-29 17:04               ` Stanislav Kinsbursky
2011-12-29 17:42               ` Stanislav Kinsbursky
2012-01-25 11:12                 ` Stanislav Kinsbursky
2012-01-25 14:41                   ` bfields
2012-01-25 16:02                     ` Stanislav Kinsbursky
2011-12-28 18:22 ` bfields
2011-12-29 11:48   ` Stanislav Kinsbursky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox