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 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

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

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

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

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

[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

[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