[PATCH] netlink_autobind to use virtual pid #55602 [message #513] |
Sat, 10 December 2005 11:01 |
den
Messages: 494 Registered: December 2005
|
Senior Member |
|
|
Hello, All!
Patch from Denis (den@):
This patch fixes netlink_autobind to make `ip rule show` works inside VE
as it checks the destination PID on the message against value obtained
via getpid.
Bug #55602
Regards,
Den
P.S. Are we sure, that migration of netlink sockets works?
--- ./net/netlink/af_netlink.c.virt 2005-12-10 13:30:56.000000000 +0300
+++ ./net/netlink/af_netlink.c 2005-12-10 13:51:32.000000000 +0300
@@ -286,7 +286,7 @@ static int netlink_autobind(struct socke
struct sock *sk = sock->sk;
struct sock *osk;
struct hlist_node *node;
- s32 pid = current->pid;
+ s32 pid = virt_pid(current);
int err;
retry:
|
|
|