Re: Does anybody try to compile the 2.3 kernels at all ? :((

From: Sergey Kubushin (ksi@ksi-linux.com)
Date: Fri Feb 11 2000 - 07:53:35 EST


On Thu, 10 Feb 2000, Richard B. Johnson wrote:

> On Fri, 11 Feb 2000, Sergey Kubushin wrote:
>
> [SNIPPED <fire and ice>]
>
> > But I wanna know what lies behind the changed /proc/*/cmdline.
>
> Read "the list". It's being worked on. I was one of the persons that
> discovered the change. The guy that's working on it says he's going
> to make it possible to read new pointers rather than just old data
> space.
>
> This means that:
>
> strcpy(argv[0], "Overwrite the command line and environment");
> .. which is dangerous... Will eventually allow:
>
> argv[0] = "New string of whatever length you want";
>
> This allows backwards compatibility as well as forwards. Right now,
> if you have a copy of your `init` source, just do:
>
>
> char tmp_buf0[0x08]; /* Room for "init" */
> char tmp_buf1[0x08]; /* Room for "auto" */
>
> strcpy(tmp_buf0, argv[0]);
> strcpy(tmp_buf1, argv[1]);
>
> argv[0] = (char *) malloc(0x100);
> argv[1] = (char *) malloc(0x100);
> strcpy(argv[0], tmp_buf0);
> strcpy(argv[1], tmp_buf1);
>
> This makes lots of room for future children so you don't have to
> modify any of them.

Unfortunately enough, it does NOT fix the whole bunch of decent daemons
(ftpd, sendmail, crond etc...). EVERY one has to be fixed in order to get
setproctitle() working...

===========================================================================
Sergey Kubushin aka the Tamer < > The impossible we do immediately.
e-mail: ksi@ksi-linux.com SK320-RIPE < > Miracles require 24-hour notice.
===========================================================================

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Feb 15 2000 - 21:00:20 EST