diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2009-11-12 04:32:48 +0100 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2009-11-12 04:35:52 +0100 |
commit | 2fb10732c3b3c9671b1a391996ce7e551876c25e (patch) | |
tree | 84944564aaefa5c702c79dc20ccc9ecec34dc0a8 /kernel | |
parent | sysctl: Don't look at ctl_name and strategy in the generic code (diff) | |
download | linux-2fb10732c3b3c9671b1a391996ce7e551876c25e.tar.xz linux-2fb10732c3b3c9671b1a391996ce7e551876c25e.zip |
sysctl: Warn about all uses of sys_sysctl.
Now that the glibc pthread implemenation no longers uses sysctl() users
of sysctl are as rare as hen's teeth. So remove the glibc exception
from the warning, and use the standard printk_ratelimit instead of
rolling our own.
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/sysctl_binary.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/kernel/sysctl_binary.c b/kernel/sysctl_binary.c index 471438bbece6..bf0a4b06782a 100644 --- a/kernel/sysctl_binary.c +++ b/kernel/sysctl_binary.c @@ -1393,15 +1393,9 @@ static ssize_t binary_sysctl(const int *name, int nlen, static void deprecated_sysctl_warning(const int *name, int nlen) { - static int msg_count; int i; - /* Ignore accesses to kernel.version */ - if ((nlen == 2) && (name[0] == CTL_KERN) && (name[1] == KERN_VERSION)) - return; - - if (msg_count < 5) { - msg_count++; + if (printk_ratelimit()) { printk(KERN_INFO "warning: process `%s' used the deprecated sysctl " "system call with ", current->comm); |