]> git.baikalelectronics.ru Git - 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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Feb 2020 04:07:25 +0000 (20:07 -0800)
commitd9238a97d9eb7675eaf7f222f0bf7f3d4ac9c10a
treecfe2a546d0f14cffd03044ac8e7756e8646e46a5
parent80d17c2b28dd63e345596e4d1d2a612bce8e5f61
sysfs: add sysfs_group{s}_change_owner()

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>
fs/sysfs/group.c
include/linux/sysfs.h