]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'netlink-strict-attribute-checking-follow-up'
authorDavid S. Miller <davem@davemloft.net>
Sat, 4 May 2019 05:27:11 +0000 (01:27 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sat, 4 May 2019 05:27:11 +0000 (01:27 -0400)
commit482ce45f4a5ce387ea20362ccaa6269558fb48e6
treef2aad0917c7a2e619bca6eefa82eb6b3355fb537
parentfe21d0c17b5e027991dc829a2319b8a9cf21a5bf
parent7f27bdc5aabf2bbc9546ea14850877df42ac6296
Merge branch 'netlink-strict-attribute-checking-follow-up'

Michal Kubecek says:

====================
netlink: strict attribute checking follow-up

Three follow-up patches for recent strict netlink validation series.

Patch 1 fixes dump handling for genetlink families which validate and parse
messages themselves (e.g. because they need different policies for diferent
commands).

Patch 2 sets bad_attr in extack in one place where this was omitted.

Patch 3 adds new NL_VALIDATE_NESTED flags for strict validation to enable
checking that NLA_F_NESTED value in received messages matches expectations
and includes this flag in NL_VALIDATE_STRICT. This would change userspace
visible behavior but the previous switching to NL_VALIDATE_STRICT for new
code is still only in net-next at the moment.

v2: change error messages to mention NLA_F_NESTED explicitly
====================

Signed-off-by: David S. Miller <davem@davemloft.net>