]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
sysfs: add sysfs_group{s}_change_owner()
authorChristian Brauner <christian.brauner@ubuntu.com>
Thu, 27 Feb 2020 03:37:13 +0000 (04:37 +0100)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 3 Apr 2020 13:17:23 +0000 (15:17 +0200)
commit67e4c99d63334ea54ebe3fb1a5a406082ce34155
tree725e1c299f5e83721d109d912f5b8390ec3445d2
parentc67a60b90db37c298b241ef1d5790a72a8f177ba
sysfs: add sysfs_group{s}_change_owner()

BugLink: https://bugs.launchpad.net/bugs/1865359
Add helpers to change the owner of sysfs groups.
This function will be used to correctly account for kobject ownership
changes, e.g. when moving network devices between network namespaces.

Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 303a42769c4c4d8e5e3ad928df87eb36f8c1fa60 linux-next)
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
fs/sysfs/group.c
include/linux/sysfs.h