From: Andrew Morton If sys_sysctl() is not compiled-in, emit a warning. Cc: Eric W. Biederman Signed-off-by: Andrew Morton --- kernel/sysctl.c | 8 ++++++++ 1 files changed, 8 insertions(+) diff -puN kernel/sysctl.c~sysctl-allow-proc-sys-without-sys_sysctl-fix kernel/sysctl.c --- a/kernel/sysctl.c~sysctl-allow-proc-sys-without-sys_sysctl-fix +++ a/kernel/sysctl.c @@ -2486,6 +2486,14 @@ int sysctl_ms_jiffies(ctl_table *table, asmlinkage long sys_sysctl(struct __sysctl_args __user *args) { + static int msg_count; + + if (msg_count < 5) { + msg_count++; + printk(KERN_INFO + "warning: process `%s' used the removed sysctl " + "system call\n", current->comm); + } return -ENOSYS; } _