Re: linux-kernel-digest V1 #2839

Brandon S. Allbery KF8NH (allbery@kf8nh.apk.net)
Mon, 16 Nov 1998 21:44:38 -0500


In message <XFMail.981116162732.simon@koala.ie>, Simon Kenyon writes:
+-----
| in 4.2bsd (at least) the environment is/was writable, so a proc can overwrite
| its
| command line arguments to achieve the same effect. is this not how sendmail d
| oes it?
+--->8

It's always writeable. But ps doesn't necessarily look at the process's
memory space to get the arguments, as that is usually complex (is it
swapped?) and always slow. System V-derived Unixes store some part (usually
the first 80 characters) of the original command line in the ublock to make
ps faster, at the price of some magic required (if it's possible at all) to
change that saved command line.

-- 
brandon s. allbery	[os/2][linux][solaris][japh]	 allbery@kf8nh.apk.net
system administrator	     [WAY too many hats]	   allbery@ece.cmu.edu
carnegie mellon / electrical and computer engineering			 KF8NH
			  Kiss my bits, Billy-boy.

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