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> |
||
|---|---|---|
| .. | ||
| builtin | ||
| Kconfig | ||
| Makefile | ||
| fallback.c | ||
| fallback.h | ||
| fallback_platform.c | ||
| fallback_table.c | ||
| firmware.h | ||
| main.c | ||
| sysfs.c | ||
| sysfs.h | ||
| sysfs_upload.c | ||
| sysfs_upload.h | ||