diff options
| author | Eric W. Biederman <[email protected]> | 2007-10-18 03:05:54 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2007-10-18 14:37:23 -0700 |
| commit | fc6cd25b738c2369d7ed3a6ef2ca248b51fcd2d4 (patch) | |
| tree | bd3708eac72edf06097a8a2ed72c3a3fea0b0998 /include/linux/moduleloader.h | |
| parent | f429cd37a21b8efc825bdbb22db7f033564cbc98 (diff) | |
sysctl: Error on bad sysctl tables
After going through the kernels sysctl tables several times it has become
clear that code review and testing is just not effective in prevent
problematic sysctl tables from being used in the stable kernel. I certainly
can't seem to fix the problems as fast as they are introduced.
Therefore this patch adds sysctl_check_table which is called when a sysctl
table is registered and checks to see if we have a problematic sysctl table.
The biggest part of the code is the table of valid binary sysctl entries, but
since we have frozen our set of binary sysctls this table should not need to
change, and it makes it much easier to detect when someone unintentionally
adds a new binary sysctl value.
As best as I can determine all of the several hundred errors spewed on boot up
now are legitimate.
[[email protected]: kernel/sysctl_check.c must #include <linux/string.h>]
Signed-off-by: Eric W. Biederman <[email protected]>
Cc: Alexey Dobriyan <[email protected]>
Signed-off-by: Adrian Bunk <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux/moduleloader.h')
0 files changed, 0 insertions, 0 deletions