lkml.org 
[lkml]   [1998]   [Nov]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: linux-kernel-digest V1 #2839
Date
From
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/

\
 
 \ /
  Last update: 2005-03-22 13:45    [W:0.035 / U:0.200 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site