]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
netlink: compare policy more accurately
authorJohannes Berg <johannes.berg@intel.com>
Sat, 3 Oct 2020 08:44:42 +0000 (10:44 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 3 Oct 2020 21:18:29 +0000 (14:18 -0700)
commit899b07c5787fbc6d2be51d0ea31721c8c2165458
treeeffd964f707ecb11e584b9979138bbf5d6dc2458
parent678cdd4967081b3035027b346d10f6f38bf367d2
netlink: compare policy more accurately

The maxtype is really an integral part of the policy, and while we
haven't gotten into a situation yet where this happens, it seems
that some developer might eventually have two places pointing to
identical policies, with different maxattr to exclude some attrs
in one of the places.

Even if not, it's really the right thing to compare both since the
two data items fundamentally belong together.

v2:
 - also do the proper comparison in get_policy_idx()

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