Re: [PATCH/RFC] Deprecate sysctl(2), add sysctl_name

Arjan van de Ven (arjanv@redhat.com)
11 Jul 2003 12:09:37 +0200


This is a MIME-formatted message. If you see this text it means that your
E-mail software does not support MIME-formatted messages.

--=_courier-11966-1057918333-0001-2
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

> --- 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 @@
> =20
> if (copy_from_user(&tmp, args, sizeof(tmp)))
> return -EFAULT;
> - =09
> +=09
> + if (tmp.nlen !=3D 2 || tmp.name[0] !=3D CTL_KERN ||
> + tmp.name[1] !=3D KERN_VERSION) {=20
> + int i;
> + printk(KERN_INFO "%s: numerical sysctl ", current->comm);=20
> + for (i =3D 0; i < tmp.nlen; i++)=20
> + printk("%d ", tmp.name[i]);=20
> + printk("is obsolete.\n");
> + }=20
> +
> lock_kernel();

how about rate limiting this ?

--=_courier-11966-1057918333-0001-2
Content-Type: application/pgp-signature; name="signature.asc"
Content-Transfer-Encoding: 7bit
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQA/DozgxULwo51rQBIRAqSTAJ9WwpL8V3DEmm3+IbIHL0A0GvuX1gCdH2Tq
jhJSHIvnOyoDFSoCTVYvWTo=
=sgnE
-----END PGP SIGNATURE-----

--=_courier-11966-1057918333-0001-2--