net: bridge: constify 'struct bin_attribute'
authorThomas Weißschuh <linux@weissschuh.net>
Mon, 16 Dec 2024 11:30:08 +0000 (12:30 +0100)
committerJakub Kicinski <kuba@kernel.org>
Wed, 18 Dec 2024 03:00:43 +0000 (19:00 -0800)
commita2558b410de3b0b6c38222ac4858188a55bc52ff
treefba863794a7263ee9dd2f244c0c0617aefe3350d
parentd3c9510dc900e9ff3ea330189c0465c9f00fba18
net: bridge: constify 'struct bin_attribute'

The sysfs core now allows instances of 'struct bin_attribute' to be
moved into read-only memory. Make use of that to protect them against
accidental or malicious modifications.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Reviewed-by: Simon Horman <horms@kernel.org>
Acked-by: Nikolay Aleksandrov <razor@blackwall.org>
Link: https://patch.msgid.link/20241216-sysfs-const-bin_attr-net-v1-1-ec460b91f274@weissschuh.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/bridge/br_sysfs_br.c