Re: [PATCH net-next 2/2 v4] netns: send uevent messages

2018-03-22 Thread David Miller
From: Christian Brauner Date: Mon, 19 Mar 2018 13:17:31 +0100 > This patch adds a receive method to NETLINK_KOBJECT_UEVENT netlink sockets > to allow sending uevent messages into the network namespace the socket > belongs to. > > Currently non-initial network namespaces are already isolated and

[PATCH net-next 2/2 v4] netns: send uevent messages

2018-03-19 Thread Christian Brauner
This patch adds a receive method to NETLINK_KOBJECT_UEVENT netlink sockets to allow sending uevent messages into the network namespace the socket belongs to. Currently non-initial network namespaces are already isolated and don't receive uevents. There are a number of cases where it is beneficial

[PATCH 2/2 v3] netns: send uevent messages

2018-03-17 Thread Christian Brauner
This patch adds a receive method to NETLINK_KOBJECT_UEVENT netlink sockets to allow sending uevent messages into the network namespace the socket belongs to. Currently non-initial network namespaces are already isolated and don't receive uevents. There are a number of cases where it is beneficial

Re: [PATCH v2] netns: send uevent messages

2018-03-17 Thread Christian Brauner
On Fri, Mar 16, 2018 at 11:14:31PM +0300, Kirill Tkhai wrote: > On 16.03.2018 15:50, Christian Brauner wrote: > > This patch adds a receive method to NETLINK_KOBJECT_UEVENT netlink sockets > > to allow sending uevent messages into the network namespace the socket > > belongs to. > > > > Currently

Re: [PATCH v2] netns: send uevent messages

2018-03-17 Thread Christian Brauner
On Fri, Mar 16, 2018 at 02:41:45PM -0400, David Miller wrote: > From: Christian Brauner > Date: Fri, 16 Mar 2018 13:50:30 +0100 > > > +static int uevent_net_broadcast(struct sock *usk, struct sk_buff *skb, > > + struct netlink_ext_ack *extack) > > +{ > > + int ret; > >

Re: [PATCH v2] netns: send uevent messages

2018-03-16 Thread Kirill Tkhai
On 16.03.2018 15:50, Christian Brauner wrote: > This patch adds a receive method to NETLINK_KOBJECT_UEVENT netlink sockets > to allow sending uevent messages into the network namespace the socket > belongs to. > > Currently non-initial network namespaces are already isolated and don't > receive ue

Re: [PATCH v2] netns: send uevent messages

2018-03-16 Thread David Miller
From: Christian Brauner Date: Fri, 16 Mar 2018 13:50:30 +0100 > +static int uevent_net_broadcast(struct sock *usk, struct sk_buff *skb, > + struct netlink_ext_ack *extack) > +{ > + int ret; > + /* u64 to chars: 2^64 - 1 = 21 chars */ > + char buf[sizeof("SE

[PATCH v2] netns: send uevent messages

2018-03-16 Thread Christian Brauner
This patch adds a receive method to NETLINK_KOBJECT_UEVENT netlink sockets to allow sending uevent messages into the network namespace the socket belongs to. Currently non-initial network namespaces are already isolated and don't receive uevents. There are a number of cases where it is beneficial

Re: netns: send uevent messages

2018-03-16 Thread Kirill Tkhai
On 16.03.2018 02:46, Christian Brauner wrote: > On Thu, Mar 15, 2018 at 05:14:13PM +0300, Kirill Tkhai wrote: >> On 15.03.2018 16:39, Christian Brauner wrote: >>> On Thu, Mar 15, 2018 at 12:47:30PM +0300, Kirill Tkhai wrote: CC Andrey Vagin >>> >>> Hey Kirill, >>> >>> Thanks for CCing Andrey.

Re: netns: send uevent messages

2018-03-15 Thread Christian Brauner
On Thu, Mar 15, 2018 at 05:14:13PM +0300, Kirill Tkhai wrote: > On 15.03.2018 16:39, Christian Brauner wrote: > > On Thu, Mar 15, 2018 at 12:47:30PM +0300, Kirill Tkhai wrote: > >> CC Andrey Vagin > > > > Hey Kirill, > > > > Thanks for CCing Andrey. > > > >> > >> On 15.03.2018 03:12, Christian B

[PATCH v1] netns: send uevent messages

2018-03-15 Thread Christian Brauner
This patch adds a receive method to NETLINK_KOBJECT_UEVENT netlink sockets to allow sending uevent messages into the network namespace the socket belongs to. Currently non-initial network namespaces are already isolated and don't receive uevents. There are a number of cases where it is beneficial

Re: netns: send uevent messages

2018-03-15 Thread Kirill Tkhai
On 15.03.2018 16:39, Christian Brauner wrote: > On Thu, Mar 15, 2018 at 12:47:30PM +0300, Kirill Tkhai wrote: >> CC Andrey Vagin > > Hey Kirill, > > Thanks for CCing Andrey. > >> >> On 15.03.2018 03:12, Christian Brauner wrote: >>> This patch adds a receive method to NETLINK_KOBJECT_UEVENT netli

Re: netns: send uevent messages

2018-03-15 Thread Christian Brauner
On Thu, Mar 15, 2018 at 12:47:30PM +0300, Kirill Tkhai wrote: > CC Andrey Vagin Hey Kirill, Thanks for CCing Andrey. > > On 15.03.2018 03:12, Christian Brauner wrote: > > This patch adds a receive method to NETLINK_KOBJECT_UEVENT netlink sockets > > to allow sending uevent messages into the net

Re: netns: send uevent messages

2018-03-15 Thread Kirill Tkhai
CC Andrey Vagin On 15.03.2018 03:12, Christian Brauner wrote: > This patch adds a receive method to NETLINK_KOBJECT_UEVENT netlink sockets > to allow sending uevent messages into the network namespace the socket > belongs to. > > Currently non-initial network namespaces are already isolated and d

[PATCH] netns: send uevent messages

2018-03-14 Thread Christian Brauner
This patch adds a receive method to NETLINK_KOBJECT_UEVENT netlink sockets to allow sending uevent messages into the network namespace the socket belongs to. Currently non-initial network namespaces are already isolated and don't receive uevents. There are a number of cases where it is beneficial