netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] netlink: use the appropriate namespace pid
@ 2010-03-20  1:38 Tom Goff
  2010-03-22  4:30 ` David Miller
  2010-03-23  3:25 ` David Miller
  0 siblings, 2 replies; 12+ messages in thread
From: Tom Goff @ 2010-03-20  1:38 UTC (permalink / raw)
  To: netdev

This was included in OpenVZ kernels but wasn't integrated upstream.
>From git://git.openvz.org/pub/linux-2.6.24-openvz:

	commit 5c69402f18adf7276352e051ece2cf31feefab02
	Author: Alexey Dobriyan <adobriyan@openvz.org>
	Date:   Mon Dec 24 14:37:45 2007 +0300

	    netlink: fixup ->tgid to work in multiple PID namespaces

Signed-off-by: Tom Goff <thomas.goff@boeing.com>
---
 net/netlink/af_netlink.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c
index 320d042..b5ac0cd 100644
--- a/net/netlink/af_netlink.c
+++ b/net/netlink/af_netlink.c
@@ -545,7 +545,7 @@ static int netlink_autobind(struct socket *sock)
 	struct hlist_head *head;
 	struct sock *osk;
 	struct hlist_node *node;
-	s32 pid = current->tgid;
+	s32 pid = task_tgid_vnr(current);
 	int err;
 	static s32 rover = -4097;
 
-- 
1.6.3.3


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

end of thread, other threads:[~2010-04-02  1:43 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-20  1:38 [PATCH] netlink: use the appropriate namespace pid Tom Goff
2010-03-22  4:30 ` David Miller
2010-03-24  7:58   ` Alexey Dobriyan
2010-03-24  8:19     ` Alexey Dobriyan
2010-03-27  3:14       ` David Miller
2010-03-31  2:42         ` Goff, Thomas
2010-03-31  2:43         ` [PATCH] net_sched: minor netns related cleanup Tom Goff
2010-03-31  2:45           ` David Miller
2010-04-02  1:43           ` David Miller
2010-03-24 14:18     ` [PATCH] netlink: use the appropriate namespace pid Goff, Thomas
2010-03-27  3:15       ` David Miller
2010-03-23  3:25 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).