[Bridge] [PATCH net-next v2 6/7] net: Create reusable function for getting ownership info of sysfs inodes

2018-07-16 Thread Tyler Hicks
Make net_ns_get_ownership() reusable by networking code outside of core. This is useful, for example, to allow bridge related sysfs files to be owned by container root. Add a function comment since this is a potentially dangerous function to use given the way that kobject_get_ownership() works by

Re: [Bridge] [PATCH net-next v2 6/7] net: Create reusable function for getting ownership info of sysfs inodes

2018-07-20 Thread Tyler Hicks
On 07/19/2018 09:36 AM, Christian Brauner wrote: > On Fri, Jul 13, 2018 at 04:05:48PM +, Tyler Hicks wrote: >> Make net_ns_get_ownership() reusable by networking code outside of core. >> This is useful, for example, to allow bridge related sysfs files to be >> owned by container root. >> >> Add

Re: [Bridge] [PATCH net-next v2 6/7] net: Create reusable function for getting ownership info of sysfs inodes

2018-07-21 Thread Christian Brauner
On Fri, Jul 13, 2018 at 04:05:48PM +, Tyler Hicks wrote: > Make net_ns_get_ownership() reusable by networking code outside of core. > This is useful, for example, to allow bridge related sysfs files to be > owned by container root. > > Add a function comment since this is a potentially dangero