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.
Showing the changes to include/uapi/linux (1 of 2 files). Show all
Unified · Split
| @@ -65,6 +65,7 @@ enum { · 64 unmodified lines | ||
| 65 | 65 | CTRL_ATTR_MCAST_GROUPS, |
| 66 | 66 | CTRL_ATTR_POLICY, |
| 67 | 67 | CTRL_ATTR_OP_POLICY, |
| 68 | + CTRL_ATTR_OP, | |
| 68 | 69 | __CTRL_ATTR_MAX, |
| 69 | 70 | }; |
| 70 | 71 | |