diff options
author | 2024-12-22 21:20:50 +0100 | |
---|---|---|
committer | 2025-01-10 10:15:11 +0100 | |
commit | c1ecb860a48d0bf56b0fc8391c5d59b0c3b42516 (patch) | |
tree | 8d79f60f1961de9400e3b0c0436fa9d8f59a57f0 /rust/kernel | |
parent | devcoredump: cleanup some comments (diff) | |
download | wireguard-linux-c1ecb860a48d0bf56b0fc8391c5d59b0c3b42516.tar.xz wireguard-linux-c1ecb860a48d0bf56b0fc8391c5d59b0c3b42516.zip |
firmware_loader: 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: Russ Weight <russ.weight@linux.dev>
Link: https://lore.kernel.org/r/20241222-sysfs-const-bin_attr-firmware-v1-1-c35e56bfb4eb@weissschuh.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'rust/kernel')
0 files changed, 0 insertions, 0 deletions