Bug 495

Summary: LocalClientCred should use getpeerucred on Solaris 10
Product: xorg Reporter: Alan Coopersmith <alan.coopersmith>
Component: Server/GeneralAssignee: Alan Coopersmith <alan.coopersmith>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: 6.7.0   
Hardware: All   
OS: Solaris   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
Patches to use getpeerucred() in LocalClientCred() on Solaris 10 none

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.