[RFC net-next 13/14] wireguard: netlink: enable strict genetlink validation
Asbjørn Sloth Tønnesen <[email protected]>
| Newsgroups | com.zx2c4.lists.wireguard,org.kernel.vger.linux-kernel,org.kernel.vger.netdev |
|---|---|
| Message-ID | <[email protected]> |
Wireguard is a modern enough genetlink family, that it doesn't need resv_start_op. It already had policies in place when it was first merged, it has also never used reserved fields, or other things toggled by resv_start_op. [TODO: before v1, also test with ancient wireguard-tools versions] Signed-off-by: Asbjørn Sloth Tønnesen <[email protected]> --- drivers/net/wireguard/netlink.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/wireguard/netlink.c b/drivers/net/wireguard/netlink.c index 0e34817126b9..67c448eef25d 100644 --- a/drivers/net/wireguard/netlink.c +++ b/drivers/net/wireguard/netlink.c @@ -592,7 +592,6 @@ int wireguard_nl_set_device_doit(struct sk_buff *skb, static struct genl_family genl_family __ro_after_init = { .split_ops = wireguard_nl_ops, .n_split_ops = ARRAY_SIZE(wireguard_nl_ops), - .resv_start_op = WG_CMD_SET_DEVICE + 1, .name = WG_GENL_NAME, .version = WG_GENL_VERSION, .module = THIS_MODULE, -- 2.51.0