Re: [PATCH net-next 06/13] net: namespace: perform strict checks also for doit handlers

2019-01-18 Thread Jakub Kicinski
On Fri, 18 Jan 2019 09:17:46 +0100, Nicolas Dichtel wrote: > > +static int rtnl_net_valid_getid_req(struct sk_buff *skb, > > + const struct nlmsghdr *nlh, > > + struct nlattr **tb, > > + struct netlink_ext_ack

Re: [PATCH net-next 06/13] net: namespace: perform strict checks also for doit handlers

2019-01-18 Thread Nicolas Dichtel
Le 17/01/2019 à 23:52, Jakub Kicinski a écrit : > Make RTM_GETNSID's doit handler use strict checks when > NETLINK_F_STRICT_CHK is set. > > Signed-off-by: Jakub Kicinski > --- > CC: ktk...@virtuozzo.com > CC: nicolas.dich...@6wind.com > --- > net/core/net_namespace.c | 43 +++

[PATCH net-next 06/13] net: namespace: perform strict checks also for doit handlers

2019-01-17 Thread Jakub Kicinski
Make RTM_GETNSID's doit handler use strict checks when NETLINK_F_STRICT_CHK is set. Signed-off-by: Jakub Kicinski --- CC: ktk...@virtuozzo.com CC: nicolas.dich...@6wind.com --- net/core/net_namespace.c | 43 ++-- 1 file changed, 41 insertions(+), 2 deletions(-