]> 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)
commit79d4b9010d2ea6591d5464c80a9477e55de8057b
tree6facc8389c5c79d61babf18e62163e3e90273060
parentbc920b2c2f2545b4547b7f41bf44ac29795f5886
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