diff options
| author | Thomas Weißschuh <[email protected]> | 2024-08-05 09:39:38 +0000 |
|---|---|---|
| committer | Joel Granados <[email protected]> | 2024-10-09 11:39:11 +0000 |
| commit | 7abc9b53bd515d7953d1f4e069b062ec4b5ba9e7 (patch) | |
| tree | 82b8b185321a48d2d32ad9c08183e39e9a22c070 /rust/helpers/build_assert.c | |
| parent | sysctl: move internal interfaces to const struct ctl_table (diff) | |
| download | kernel-7abc9b53bd515d7953d1f4e069b062ec4b5ba9e7.tar.gz kernel-7abc9b53bd515d7953d1f4e069b062ec4b5ba9e7.zip | |
sysctl: allow registration of const struct ctl_table
Putting structure, especially those containing function pointers,
into read-only memory makes the safer and easier to reason about.
Change the sysctl registration APIs to allow registration of
"const struct ctl_table".
Signed-off-by: Thomas Weißschuh <[email protected]>
Acked-by: Kees Cook <[email protected]>
Reviewed-by: Kees Cook <[email protected]> # security/*
Signed-off-by: Joel Granados <[email protected]>
Diffstat (limited to 'rust/helpers/build_assert.c')
0 files changed, 0 insertions, 0 deletions
