History

genetlink: allow dumping command-specific policy

Right now CTRL_CMD_GETPOLICY can only dump the family-wide policy. Support dumping policy of a specific op. v3: - rebase after per-op policy export and handle that v2: - make cmd U32, just in case. v1: - don't echo op in the output in a naive way, this should make it cleaner to extend the output format for dumping policies for all the commands at once in the future.

Jakub Kicinski committed 6 years ago

Commit e992a6e1 parent 50a896c2 files · +37 −5Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/genetlink.h+1−0
@@ -65,6 +65,7 @@ enum { · 64 unmodified lines
6565 CTRL_ATTR_MCAST_GROUPS,
6666 CTRL_ATTR_POLICY,
6767 CTRL_ATTR_OP_POLICY,
68+ CTRL_ATTR_OP,
6869 __CTRL_ATTR_MAX,
6970 };
7071