aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/rust/kernel/irq/request.rs
diff options
context:
space:
mode:
authorAsbjørn Sloth Tønnesen <ast@fiberby.net>2025-11-26 17:35:34 +0000
committerJason A. Donenfeld <Jason@zx2c4.com>2025-12-01 03:25:09 +0100
commit9755f9de8fac62ed36f1925d6996daf4060d8839 (patch)
tree5a36d5546ce1317f72fd2cfae516fe5caa33cc15 /rust/kernel/irq/request.rs
parentwireguard: netlink: validate nested arrays in policy (diff)
downloadwireguard-linux-9755f9de8fac62ed36f1925d6996daf4060d8839.tar.xz
wireguard-linux-9755f9de8fac62ed36f1925d6996daf4060d8839.zip
wireguard: netlink: use WG_KEY_LEN in policies
When converting the netlink policies to YNL, the constants used in the policy have to be visible to userspace. As NOISE_*_KEY_LEN isn't visible to userspace, change the policy to use WG_KEY_LEN, as also documented in the UAPI header: $ grep WG_KEY_LEN include/uapi/linux/wireguard.h * WGDEVICE_A_PRIVATE_KEY: NLA_EXACT_LEN, len WG_KEY_LEN * WGDEVICE_A_PUBLIC_KEY: NLA_EXACT_LEN, len WG_KEY_LEN * WGPEER_A_PUBLIC_KEY: NLA_EXACT_LEN, len WG_KEY_LEN * WGPEER_A_PRESHARED_KEY: NLA_EXACT_LEN, len WG_KEY_LEN [...] Add a couple of BUILD_BUG_ON() to ensure that they stay in sync. No behavioural changes intended. Signed-off-by: Asbjørn Sloth Tønnesen <ast@fiberby.net> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'rust/kernel/irq/request.rs')
0 files changed, 0 insertions, 0 deletions