[lkml]   [2016]   [Oct]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] net: skip genenerating uevents for network namespaces that are exiting
Hi Cong,

On Thu, Oct 20, 2016 at 10:25 PM, Andrey Vagin <> wrote:
> On Thu, Oct 20, 2016 at 8:10 PM, Cong Wang <> wrote:
>> On Thu, Oct 20, 2016 at 7:46 PM, Andrei Vagin <> wrote:
>>> No one can see these events, because a network namespace can not be
>>> destroyed, if it has sockets.
>> Are you sure? kobject_uevent_env() seems sending uevents to all
>> network namespaces.
> kobj_bcast_filter() checks that a kobject namespace is equal to a
> socket namespace.

Today I've checked that it really works as I read from the source code.
I use this tool to read events:

And I see that events from non-network devices are delivered to all sockets,
but events from network devices are delivered only to sockets from
a network namespace where a device is operated.


>> _______________________________________________
>> Containers mailing list

 \ /
  Last update: 2016-10-22 09:38    [W:0.066 / U:1.120 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site