]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
net-sysfs: add queue_change_owner()
authorChristian Brauner <christian.brauner@ubuntu.com>
Thu, 27 Feb 2020 03:37:18 +0000 (04:37 +0100)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 3 Apr 2020 13:17:23 +0000 (15:17 +0200)
commitd9becb5f3a8fd2b7999df9b864c93d4cae1ff2ff
tree8a07868179c2ffcd6e4b384ccec5097c759fc3c5
parent675ebce7b58aa93db8df83724ac9e28279f8e9c2
net-sysfs: add queue_change_owner()

BugLink: https://bugs.launchpad.net/bugs/1865359
Add a function to change the owner of the queue entries for a network device
when it is moved between network namespaces.

Currently, when moving network devices between network namespaces the
ownership of the corresponding queue sysfs entries are not changed. This leads
to problems when tools try to operate on the corresponding sysfs files. Fix
this.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit d755407d4444c3e0fbd7d7c3aa666d595e9ab217 linux-next)
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
net/core/net-sysfs.c