LocalClientCred() in xc/programs/Xserver/os/access.c uses platform-specific methods to get the credentials of the client making a local connection. Currently, it has no supported method for getting these credentials on Solaris, but Solaris 10 introduces a getpeerucred() function similar to the getpeereid() function that LocalClientCred uses on other platforms, so LocalClientCred should use that when it is available. The patch I'm about to attach does that.
Created attachment 208 [details] [review] Patches to use getpeerucred() in LocalClientCred() on Solaris 10
Commited to XORG-CURRENT branch: CVSROOT: /cvs/xorg Module name: xc Changes by: alanc@pdx. 04/04/17 11:47:06 Log message: Bugzilla #495: LocalClientCred should use getpeerucred on Solaris 10 Modified files: xc/config/cf/: Tag: XORG-CURRENT sun.cf Imake.tmpl xc/programs/Xserver/os/: Tag: XORG-CURRENT Imakefile access.c ./: Tag: XORG-CURRENT ChangeLog Revision Changes Path 1.1.4.12 +1 -0 xc/config/cf/sun.cf 1.1.4.9 +4 -1 xc/config/cf/Imake.tmpl 1.1.4.4 +7 -3 xc/programs/Xserver/os/Imakefile 1.1.4.6 +22 -3 xc/programs/Xserver/os/access.c 1.1.6.3 +17 -11 xc/Attic/ChangeLog
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.