]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit228db3911498f239a16c5c06a302ddca3246bea2
treef80ca21c633842383f1f9950a821e4ce5bd7d26a
parentd797aefe944c2d94b82f5eecf62af433710a20b7
tun: send netlink notification when the device is modified

I added dumping of link information about tun devices over netlink in
commit 631b92c16587 ("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: 631b92c16587 ("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