]> git.baikalelectronics.ru Git - kernel.git/commit
netlink: extend policy range validation
authorJohannes Berg <johannes.berg@intel.com>
Thu, 30 Apr 2020 20:13:08 +0000 (22:13 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 May 2020 00:51:42 +0000 (17:51 -0700)
commit0c2ae3d3f24004de5974bac425e05cf980611a3d
tree6facc8389c5c79d61babf18e62163e3e90273060
parent8bec68372fae654e730b4c2e9fe01a31744b5586
netlink: extend policy range validation

Using a pointer to a struct indicating the min/max values,
extend the ability to do range validation for arbitrary
values. Small values in the s16 range can be kept in the
policy directly.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/netlink.h
lib/nlattr.c