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
65 CTRL_ATTR_MCAST_GROUPS,65 CTRL_ATTR_MCAST_GROUPS,
66 CTRL_ATTR_POLICY,66 CTRL_ATTR_POLICY,
67 CTRL_ATTR_OP_POLICY,67 CTRL_ATTR_OP_POLICY,
68 CTRL_ATTR_OP,
68 __CTRL_ATTR_MAX,69 __CTRL_ATTR_MAX,
69};70};
70 71