lkml.org 
[lkml]   [2003]   [Jul]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH/RFC] Deprecate sysctl(2), add sysctl_name
    From
    Date

    > --- 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]
    \
     
     \ /
      Last update: 2005-03-22 13:46    [W:0.020 / U:1.596 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site