Bug 495 - LocalClientCred should use getpeerucred on Solaris 10
Summary: LocalClientCred should use getpeerucred on Solaris 10
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/General (show other bugs)
Version: 6.7.0
Hardware: All Solaris
: medium normal
Assignee: Alan Coopersmith
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-18 04:36 UTC by Alan Coopersmith
Modified: 2004-04-16 18:52 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Patches to use getpeerucred() in LocalClientCred() on Solaris 10 (3.72 KB, patch)
2004-04-18 04:38 UTC, Alan Coopersmith
no flags Details | Splinter Review

Description Alan Coopersmith 2004-04-18 04:36:02 UTC
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.
Comment 1 Alan Coopersmith 2004-04-18 04:38:04 UTC
Created attachment 208 [details] [review]
Patches to use getpeerucred() in LocalClientCred() on Solaris 10
Comment 2 Alan Coopersmith 2004-04-18 04:52:44 UTC
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.