OSDN Git Service

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)
commita4bb4f5fc811e2d227703ac41c8d44a8553a7f2a
tree1373884d93989da0eb55bca17f8544e51cf805b4
parent8e1ed28fd8d36fb83efc32b5abda774dafba6c7f
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