diff options
| author | Thomas Weißschuh <[email protected]> | 2024-12-15 14:49:10 +0000 |
|---|---|---|
| committer | Tzung-Bi Shih <[email protected]> | 2024-12-17 03:59:31 +0000 |
| commit | 7da14dea76fb6a90f62938e6dfa9f34c980af358 (patch) | |
| tree | 565e0e6a5da49447e2d757ebff0bcdd7145188f2 /security/selinux/hooks.c | |
| parent | firmware: google: cbmem: Constify 'struct bin_attribute' (diff) | |
| download | kernel-7da14dea76fb6a90f62938e6dfa9f34c980af358.tar.gz kernel-7da14dea76fb6a90f62938e6dfa9f34c980af358.zip | |
firmware: google: gsmi: 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-2-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
