[KERNEL COMMIT]: diff-ve-vpid-netlink-20051210 [message #514] |
Sat, 10 December 2005 11:10 |
dev
Messages: 1693 Registered: September 2005 Location: Moscow
|
Senior Member |

|
|
Committed in 022stab053
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
--- ./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:
|
|
|