projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c58c47
)
netlink: use the appropriate namespace pid
author
Tom Goff
<
[email protected]
>
Fri, 19 Mar 2010 15:38:50 +0000
(15:38 +0000)
committer
David S. Miller
<
[email protected]
>
Sat, 27 Mar 2010 03:13:58 +0000
(20:13 -0700)
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 <
[email protected]
>
Date: Mon Dec 24 14:37:45 2007 +0300
netlink: fixup ->tgid to work in multiple PID namespaces
Signed-off-by: Tom Goff <
[email protected]
>
Acked-by: Alexey Dobriyan <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/netlink/af_netlink.c
patch
|
blob
|
history
diff --git
a/net/netlink/af_netlink.c
b/net/netlink/af_netlink.c
index acbbae1e89b580cddd91f8d425052ca200540b43..274d977166b73289de7ffa96c16dfc700ac49929 100644
(file)
--- 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;