net-sysfs: make sure objects belong to contrainer's owner

When creating various objects in /sys/class/net/... make sure that they
belong to container's owner instead of global root (if they belong to a
container/namespace).

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
[tyhicks: forward port around ro_after_init changes]
Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
1 file changed