linux-yocto/Documentation/netlink/specs
Antonio Quartulli af52020fc5 ovpn: reject unexpected netlink attributes
Netlink ops do not expect all attributes to be always set, however
this condition is not explicitly coded any where, leading the user
to believe that all sent attributes are somewhat processed.

Fix this behaviour by introducing explicit checks.

For CMD_OVPN_PEER_GET and CMD_OVPN_KEY_GET directly open-code the
needed condition in the related ops handlers.
While for all other ops use attribute subsets in the ovpn.yaml spec file.

Fixes: b7a63391aa ("ovpn: add basic netlink support")
Reported-by: Ralf Lici <ralf@mandelbit.com>
Closes: https://github.com/OpenVPN/ovpn-net-next/issues/19
Signed-off-by: Antonio Quartulli <antonio@openvpn.net>
2025-07-16 11:51:30 +02:00
..
conntrack.yaml netlink: specs: add conntrack dump and stats dump support 2025-02-12 19:38:10 -08:00
devlink.yaml netlink: specs: devlink: replace underscores with dashes in names 2025-06-25 15:36:28 -07:00
dpll.yaml netlink: specs: dpll: replace underscores with dashes in names 2025-06-25 15:36:27 -07:00
ethtool.yaml netlink: specs: ethtool: replace underscores with dashes in names 2025-06-25 15:36:27 -07:00
fou.yaml netlink: specs: fou: replace underscores with dashes in names 2025-06-25 15:36:27 -07:00
handshake.yaml
lockd.yaml lockd: add netlink control interface 2025-03-10 09:10:53 -04:00
mptcp_pm.yaml netlink: specs: mptcp: replace underscores with dashes in names 2025-06-25 15:36:28 -07:00
net_shaper.yaml netlink: spec: add shaper introspection support 2024-10-10 08:30:22 -07:00
netdev.yaml net: devmem: TCP tx netlink api 2025-05-13 11:12:48 +02:00
nfsd.yaml netlink: specs: nfsd: replace underscores with dashes in names 2025-06-25 15:36:27 -07:00
nftables.yaml netlink: specs: nftables: allow decode of tailscale ruleset 2024-09-05 18:43:56 -07:00
nl80211.yaml netlink: specs: nl80211: drop structs which are not uAPI 2025-05-07 18:21:49 -07:00
nlctrl.yaml ynl: rename array-nest to indexed-array 2024-04-05 22:32:49 -07:00
ovpn.yaml ovpn: reject unexpected netlink attributes 2025-07-16 11:51:30 +02:00
ovs_datapath.yaml netlink: specs: ovs: correct struct names 2025-05-07 18:21:49 -07:00
ovs_flow.yaml netlink: specs: ovs_flow: replace underscores with dashes in names 2025-06-25 15:36:28 -07:00
ovs_vport.yaml netlink: specs: ovs: correct struct names 2025-05-07 18:21:49 -07:00
rt-addr.yaml netlink: specs: rt-addr: add C naming info 2025-04-10 20:14:41 -07:00
rt-link.yaml netlink: specs: rt-link: replace underscores with dashes in names 2025-06-25 15:36:28 -07:00
rt-neigh.yaml netlink: specs: rtnetlink: correct notify properties 2025-04-23 16:07:16 -07:00
rt-route.yaml netlink: specs: rt-route: add C naming info 2025-04-10 20:14:41 -07:00
rt-rule.yaml netlink: specs: rt-rule: add C naming info 2025-04-23 16:07:16 -07:00
tc.yaml netlink: specs: tc: replace underscores with dashes in names 2025-06-25 15:36:28 -07:00
tcp_metrics.yaml tcp_metrics: add netlink protocol spec in YAML 2024-07-01 09:44:27 +01:00
team.yaml Documentation: netlink: add a YAML spec for team 2024-04-02 18:24:32 -07:00