[Devel] [KERNEL COMMIT]: diff-ve-vpid-netlink-20051210
Kirill Korotaev
dev at sw.ru
Sat Dec 10 03:10:39 PST 2005
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
-------------- next part --------------
--- ./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:
More information about the Devel
mailing list