]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commitd06a09b94c618c96ced584dd4611a888c8856b8d
tree6facc8389c5c79d61babf18e62163e3e90273060
parentd15da2a2e813679aeac8bff3be38d3adc849c1a6
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