diff options
author | Jamal Hadi Salim <hadi@cyberus.ca> | 2005-06-18 22:55:51 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-06-18 22:55:51 -0700 |
commit | 9ed19f339e12e731986de84134ac293cd15910a7 (patch) | |
tree | 6a39cb14e7b51dcc3d1f31b0cf30801f27da9618 /net/core | |
parent | e431b8c004af6be03783dddea31b6e514118051d (diff) | |
download | blackbird-op-linux-9ed19f339e12e731986de84134ac293cd15910a7.tar.gz blackbird-op-linux-9ed19f339e12e731986de84134ac293cd15910a7.zip |
[NETLINK]: Set correct pid for ioctl originating netlink events
This patch ensures that netlink events created as a result of programns
using ioctls (such as ifconfig, route etc) contains the correct PID of
those events.
Signed-off-by: Jamal Hadi Salim <hadi@cyberus.ca>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/rtnetlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c index 63bd88665182..e013d836a7ab 100644 --- a/net/core/rtnetlink.c +++ b/net/core/rtnetlink.c @@ -452,7 +452,7 @@ void rtmsg_ifinfo(int type, struct net_device *dev, unsigned change) if (!skb) return; - if (rtnetlink_fill_ifinfo(skb, dev, type, 0, 0, change, 0) < 0) { + if (rtnetlink_fill_ifinfo(skb, dev, type, current->pid, 0, change, 0) < 0) { kfree_skb(skb); return; } |