Messages in this thread | | | Subject | Re: [PATCH/RFC] Deprecate sysctl(2), add sysctl_name | From | Arjan van de Ven <> | Date | 11 Jul 2003 12:09:37 +0200 |
| |
> --- linux-2.5/kernel/sysctl.c 2003-07-04 23:52:20.000000000 +0200 > +++ linux-2.5-amd64/kernel/sysctl.c 2003-07-11 03:25:18.000000000 +0200 > @@ -823,7 +838,16 @@ > > if (copy_from_user(&tmp, args, sizeof(tmp))) > return -EFAULT; > - > + > + if (tmp.nlen != 2 || tmp.name[0] != CTL_KERN || > + tmp.name[1] != KERN_VERSION) { > + int i; > + printk(KERN_INFO "%s: numerical sysctl ", current->comm); > + for (i = 0; i < tmp.nlen; i++) > + printk("%d ", tmp.name[i]); > + printk("is obsolete.\n"); > + } > + > lock_kernel();
how about rate limiting this ? [unhandled content-type:application/pgp-signature]
| |