Bug 1287 - Use getpeerucred on Solaris
Summary: Use getpeerucred on Solaris
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: Miscellaneous (show other bugs)
Version: 4.5p1
Hardware: All Solaris
: P2 normal
Assignee: Assigned to nobody
URL: http://marc.theaimsgroup.com/?l=opens...
Keywords:
Depends on:
Blocks: V_4_7
  Show dependency treegraph
 
Reported: 2007-02-19 23:13 AEDT by Darren Tucker
Modified: 2008-04-04 09:58 AEDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Darren Tucker 2007-02-19 23:13:56 AEDT
OpenSSH should use getpeerucred on Solaris to implement getpeereid.

There's a patch at the URL that looks pretty good and just needs a little work (eg moving the ucred.h include into the .c file since it's not needed elsewhere).
Comment 1 Darren Tucker 2007-03-21 21:40:14 AEDT
Patch has been applied and will be in 4.7.  Thanks to Jan Pechanec at Sun.
Comment 2 bugzilla-openssh 2007-05-10 07:14:50 AEST
I checked CVS and the supplied patch but, while they both have HAVE_UCRED_H, I don't see a check for the header <ucred.h> anywhere in the changes to configure.ac.
Comment 3 Tim Rice 2007-05-10 09:00:25 AEST
Thanks for the report. I've added ucred.h to configure.ac (line 239).
The changes should show up in the next snapshot.
Closing Bug.
Comment 4 Damien Miller 2008-04-04 09:58:30 AEDT
Close resolved bugs after release.