tun: send netlink notification when the device is modified
authorSabrina Dubroca <sd@queasysnail.net>
Tue, 10 Apr 2018 14:28:56 +0000 (16:28 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Apr 2018 18:48:05 +0000 (14:48 -0400)
commit83c1f36f9880814b24cdf6c2f91f66f61db65326
treef80ca21c633842383f1f9950a821e4ce5bd7d26a
parent9fffc5c6dd7dafb2e021dbbe9a30be2566a6949a
tun: send netlink notification when the device is modified

I added dumping of link information about tun devices over netlink in
commit 1ec010e70593 ("tun: export flags, uid, gid, queue information
over netlink"), but didn't add the missing netlink notifications when
the device's exported properties change.

This patch adds notifications when owner/group or flags are modified,
when queues are attached/detached, and when a tun fd is closed.

Reported-by: Thomas Haller <thaller@redhat.com>
Fixes: 1ec010e70593 ("tun: export flags, uid, gid, queue information over netlink")
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tun.c