Re: linux-kernel-digest V1 #2839 (writable /proc/<pid>/cmdli

Peter Horton (pdh@colonel-panic.com)
Sat, 5 Dec 1998 21:06:26 +0000 (GMT)


On Sat, 5 Dec 1998, Meelis Roos wrote:

> PJ> On linux all that is required is coping a new string into argv[0]. This is
>
> Will it fit? If my current arv is "a.out" can I write "aaaa.out" there?
>

The environment follows the command line arguments, so there is a bit of
room if you don't mind trashing the environment. Try 'cat'ing
/proc/X/environ of 'sendmail' ...

P.

---
|  pdh@colonel-panic.com           |
|  pdh@berserk.demon.co.uk         |
|  http://www.colonel-panic.com    |
|  http://www.berserk.demon.co.uk  |

- 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/