Bug 1287

Summary: Use getpeerucred on Solaris
Product: Portable OpenSSH Reporter: Darren Tucker <dtucker>
Component: MiscellaneousAssignee: Assigned to nobody <unassigned-bugs>
Status: CLOSED FIXED    
Severity: normal    
Priority: P2    
Version: 4.5p1   
Hardware: All   
OS: Solaris   
URL: http://marc.theaimsgroup.com/?l=openssh-unix-dev&m=115919880516907&w=2
Bug Depends on:    
Bug Blocks: 1289    

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.