]> git.baikalelectronics.ru Git - kernel.git/commit
genetlink: switch control commands to per-op policies
authorJakub Kicinski <kuba@kernel.org>
Fri, 2 Oct 2020 21:50:00 +0000 (14:50 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 3 Oct 2020 02:11:12 +0000 (19:11 -0700)
commite9a61036198be7b820cfde03abf2a80d4be46597
tree1373884d93989da0eb55bca17f8544e51cf805b4
parent50a224032241154b46e462954459eea772ccee4c
genetlink: switch control commands to per-op policies

In preparation for adding a new attribute to CTRL_CMD_GETPOLICY
split the policies for getpolicy and getfamily apart.

This will cause a slight user-visible change in that dumping
the policies will switch from per family to per op, but
supposedly sniffer-type applications (which are the main use
case for policy dumping thus far) should support both, anyway.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netlink/genetlink.c