Edward Pilatowicz wrote:
> On Fri, Jan 16, 2009 at 10:58:38PM +0100, Roland Mainz wrote:
> > Edward Pilatowicz wrote:
> > > On Fri, Jan 16, 2009 at 10:07:41PM +0100, Roland Mainz wrote:
> > > > Does Unix/Solaris have a function to change the process's name returned
> > > > by $ ps -ef # ?
> > >
> > > hm.  i assume your asking about this wrt 6793120.
> >
> > *shudder* ... is the issue really that big that half of Sun now knows it
> > ? ;-/
> >
> 
> no, it's just that i'm on a LOT of the bug notification aliases.
> besides, i watch ksh93 bugs with interest since i keep bumping into
> them.  :)  (hopefully, you'll be fixing 6782948 soon?)

AFAIK it may already be fixed with ksh93-integration update1 but we
didn't verify that out of time constrains (the putback contains lots of
bugfixes, not only those for which we filed bug reports in bugster).

> > > this is kinda a
> > > slippery slope.  there is no public interface to do this, but you could
> > > probably do it by mucking with.
> > >
> > >         struct user -> u_comm
> > >         struct user -> u_psargs
> > >         struct user -> u_argc
> > >         struct user -> u_argv
> >
> > Umpf... that sounds a bit like a risky hack... or not ?
> >
> 
> yes, this would be very much of a hack.  and it would interact poorly
> with debugging tools (like libproc) which try to match process names to
> address space mappings, etc.  (although i imagine that there aren't too
> many people out there debugging /bin/sleep.)  it also opens a can of
> worms, because one you start allowing random process to muck with this
> info you'll get the security folks up in arms because it would become
> easier to rename/hide processes, etc.

Isn't that possible even right now (well, I remeber some AmigaDOS worms
doing exactly that) ?

> i'm afraid i might be damming myself by making this suggestion,
> but would using a pre-compiled ksh script solve this problem?

I think "yes" since the precompiled shell script goes through
"shbinexec" and the process's argv[0] should be the binary name itself
and not the shell interpreter.

----

Bye,
Roland

-- 
  __ .  . __
 (o.\ \/ /.o) roland.ma...@nrubsig.org
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 3992797
 (;O/ \/ \O;)
_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to