Mailing List Archive

getrusage() privileged on Solaris 2.5.1
The builtin entropy gathering code in OpenSSH 2.1.1p1 tries to use
getrusage() if it's available.

This function is available on Solaris 2.5.1, but you must have root
permissions to run it.

However, configure.in uses only AC_CHECK_FUNCS() to look for getrusage,
and this only tests for a successful link. For this function you need
to do a more thorough check and actually try to run a test program with
getrusage() to see if the user has permissions to run it.

In the meantime I've had to hardwire config.h to disable HAVE_GETRUSAGE.

Thanks.

--
-------------------------------------------------------------------------------
Paul D. Smith <psmith@baynetworks.com> Network Management Development
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist
-------------------------------------------------------------------------------
These are my opinions---Nortel Networks takes no responsibility for them.