diff options
| author | Thomas Weißschuh <[email protected]> | 2024-12-15 14:49:09 +0000 |
|---|---|---|
| committer | Tzung-Bi Shih <[email protected]> | 2024-12-17 03:59:31 +0000 |
| commit | bf2066caee80c1612cb5a3356dc16a7a298f58ab (patch) | |
| tree | 6bcd0f8d6bdc41900a910e4af4faa189b45d2291 /security/selinux/hooks.c | |
| parent | Linux 6.13-rc1 (diff) | |
| download | kernel-bf2066caee80c1612cb5a3356dc16a7a298f58ab.tar.gz kernel-bf2066caee80c1612cb5a3356dc16a7a298f58ab.zip | |
firmware: google: cbmem: 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 <[email protected]>
Acked-by: Brian Norris <[email protected]>
Link: https://lore.kernel.org/r/20241215-sysfs-const-bin_attr-google-v1-1-e5c2808f5833@weissschuh.net
Signed-off-by: Tzung-Bi Shih <[email protected]>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions
