summaryrefslogtreecommitdiff
path: root/scripts/lib/kdoc/kdoc_parser.py
diff options
context:
space:
mode:
authorAntonio Quartulli <antonio@openvpn.net>2025-06-25 16:08:11 +0200
committerAntonio Quartulli <antonio@openvpn.net>2025-07-16 11:51:30 +0200
commitaf52020fc5995dd3bcbc91b897daded755564be7 (patch)
treee1001a5312531f1e173ccc25ce5398250ca16720 /scripts/lib/kdoc/kdoc_parser.py
parent4c88cfcc6738466a33778c346061f7507403276a (diff)
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: b7a63391aa98 ("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>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_parser.py')
0 files changed, 0 insertions, 0 deletions