Re: [PATCH v3 0/5] netlink: nested policy validation

2018-09-28 Thread David Miller
From: Johannes Berg Date: Thu, 27 Sep 2018 10:22:42 +0200 > On Wed, 2018-09-26 at 10:21 -0700, David Miller wrote: >> From: Johannes Berg >> Date: Wed, 26 Sep 2018 11:15:29 +0200 >> >> > This adds nested policy validation, which lets you specify the >> > nested attribute type, e.g. NLA_NESTED w

Re: [PATCH v3 0/5] netlink: nested policy validation

2018-09-27 Thread Johannes Berg
On Wed, 2018-09-26 at 10:21 -0700, David Miller wrote: > From: Johannes Berg > Date: Wed, 26 Sep 2018 11:15:29 +0200 > > > This adds nested policy validation, which lets you specify the > > nested attribute type, e.g. NLA_NESTED with sub-policy, or the > > new NLA_NESTED_ARRAY with sub-sub-policy

Re: [PATCH v3 0/5] netlink: nested policy validation

2018-09-26 Thread David Miller
From: Johannes Berg Date: Wed, 26 Sep 2018 11:15:29 +0200 > This adds nested policy validation, which lets you specify the > nested attribute type, e.g. NLA_NESTED with sub-policy, or the > new NLA_NESTED_ARRAY with sub-sub-policy. > > > Changes in v2: > * move setting the bad attr pointer/mes

[PATCH v3 0/5] netlink: nested policy validation

2018-09-26 Thread Johannes Berg
This adds nested policy validation, which lets you specify the nested attribute type, e.g. NLA_NESTED with sub-policy, or the new NLA_NESTED_ARRAY with sub-sub-policy. Changes in v2: * move setting the bad attr pointer/message into validate_nla() * remove the recursion patch since that's no lon