[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mysql or BSD?



Your version of Solaris doesn't have setproctitle, so mysql does not
attempt to change its entry in the process listing.

AFAIK, only NetBSD and OpenBSD have setproctitle, but I suppose
Solaris could, by now. I don't know why mysql doesn't try to change
its process listing in another way (I thought you could change your
arg's or somehow do that on other OS'), I assume its just kinda dumb
that way.

Not that the setproctitle is much security anyway, since until it is
called the process listing still contains the password, but its better
than nothing.

(Eh, to answer your question: mysql is doing it. It has a #define
somewhere to check if setproctitle is a valid function, and if it is
it calls it to nuke out the password. OpenBSD is one of the few
systems with setproctitle, so in that sense it helps mysql along)

jeff

On Fri, Dec 08, 2000 at 06:14:18PM -0500, Ken Weingold wrote:
> For MySQL, under Solaris if you enter the password on the command line
> with -p, it shows you that when do a 'w' or something like that.  In
> OpenBSD, it gives you:
> 
> mysql -u root -pxxxxxxxxxxx
> 
> 
> Is this OpenBSD doing this or something with mysql itself?
> 
> Thanks.
> 
> 
> -Ken
> 
> -- 
> hazmat@hellrot.org            AIM: ScopusFest
> 
> 

-- 
Jeff Bachtel  (NOC,CIS,TAMU)    http://www.cepheid.org/~jeff
				[finger jeff@cepheid.org for PGP key]
Mountain Dew and doughnuts...
because breakfast is the most important meal of the day.