OpenVZ Forum


Home » Mailing lists » Devel » [KERNEL COMMIT]: diff-ve-vpid-netlink-20051210
[KERNEL COMMIT]: diff-ve-vpid-netlink-20051210 [message #514] Sat, 10 December 2005 11:10
dev is currently offline  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:
Previous Topic: [PATCH] netlink_autobind to use virtual pid #55602
Next Topic: [KERNEL COMMIT]: diff-venet-srccheck-fix-20051208
Goto Forum:
  


Current Time: Sun Aug 24 16:15:16 GMT 2025

Total time taken to generate the page: 0.07500 seconds