open-src/xserver/xorg/dtlogin-userinfo.patch
author Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
Tue, 02 Aug 2011 13:30:29 -0700
changeset 1179 4ad971e180c3
parent 1142 c235d03e9fab
child 1196 1ce455dae979
permissions -rw-r--r--
7073739 Mass minor bugfix update to X.Org upstream release [July 2011 edition]
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
943
294f64612d23 6948254 Mass update of X gate sources to Oracle copyright format
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 919
diff changeset
     1
# Copyright (c) 2006, 2009, Oracle and/or its affiliates. All rights reserved.
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     2
#
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     3
# Permission is hereby granted, free of charge, to any person obtaining a
919
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 851
diff changeset
     4
# copy of this software and associated documentation files (the "Software"),
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 851
diff changeset
     5
# to deal in the Software without restriction, including without limitation
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 851
diff changeset
     6
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 851
diff changeset
     7
# and/or sell copies of the Software, and to permit persons to whom the
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 851
diff changeset
     8
# Software is furnished to do so, subject to the following conditions:
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 851
diff changeset
     9
#
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 851
diff changeset
    10
# The above copyright notice and this permission notice (including the next
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 851
diff changeset
    11
# paragraph) shall be included in all copies or substantial portions of the
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 851
diff changeset
    12
# Software.
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 851
diff changeset
    13
#
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 851
diff changeset
    14
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 851
diff changeset
    15
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 851
diff changeset
    16
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 851
diff changeset
    17
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 851
diff changeset
    18
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 851
diff changeset
    19
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 851
diff changeset
    20
# DEALINGS IN THE SOFTWARE.
1124
7bc7e624f965 7042476 Xorg 1.10 & associated module updates [PSARC/2011/214]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1088
diff changeset
    21
diff --git a/configure.ac b/configure.ac
1179
4ad971e180c3 7073739 Mass minor bugfix update to X.Org upstream release [July 2011 edition]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1142
diff changeset
    22
index d59ea4a..d960d4c 100644
1124
7bc7e624f965 7042476 Xorg 1.10 & associated module updates [PSARC/2011/214]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1088
diff changeset
    23
--- a/configure.ac
7bc7e624f965 7042476 Xorg 1.10 & associated module updates [PSARC/2011/214]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1088
diff changeset
    24
+++ b/configure.ac
1179
4ad971e180c3 7073739 Mass minor bugfix update to X.Org upstream release [July 2011 edition]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1142
diff changeset
    25
@@ -1464,6 +1464,7 @@ PKG_CHECK_MODULES([XSERVERLIBS], [$REQUIRED_LIBS])
1088
1c99106ccbe0 6983602 Xorg 1.9 integration [PSARC/2011/008]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
    26
 XSERVER_CFLAGS="${XSERVER_CFLAGS} ${XSERVERCFLAGS_CFLAGS}"
1c99106ccbe0 6983602 Xorg 1.9 integration [PSARC/2011/008]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
    27
 XSERVER_LIBS="$DIX_LIB $MI_LIB $OS_LIB"
1c99106ccbe0 6983602 Xorg 1.9 integration [PSARC/2011/008]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
    28
 XSERVER_SYS_LIBS="${XSERVERLIBS_LIBS} ${SYS_LIBS} ${LIBS}"
606
068c11b419c9 6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 194
diff changeset
    29
+XSERVER_SYS_LIBS="${XSERVER_SYS_LIBS} -lproject"
068c11b419c9 6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 194
diff changeset
    30
 AC_SUBST([XSERVER_LIBS])
068c11b419c9 6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 194
diff changeset
    31
 AC_SUBST([XSERVER_SYS_LIBS])
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    32
 
1124
7bc7e624f965 7042476 Xorg 1.10 & associated module updates [PSARC/2011/214]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1088
diff changeset
    33
diff --git a/dix/main.c b/dix/main.c
1179
4ad971e180c3 7073739 Mass minor bugfix update to X.Org upstream release [July 2011 edition]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1142
diff changeset
    34
index f79e861..148fb08 100644
1124
7bc7e624f965 7042476 Xorg 1.10 & associated module updates [PSARC/2011/214]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1088
diff changeset
    35
--- a/dix/main.c
7bc7e624f965 7042476 Xorg 1.10 & associated module updates [PSARC/2011/214]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1088
diff changeset
    36
+++ b/dix/main.c
7bc7e624f965 7042476 Xorg 1.10 & associated module updates [PSARC/2011/214]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1088
diff changeset
    37
@@ -115,6 +115,11 @@ Equipment Corporation.
781
bf2bd78db20e 6874875 Xorg needs to have privilege to make PCITOOL_DEVICE_SET_REG and PCITOOL_DEVICE_GET_REG ioctl calls
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 705
diff changeset
    38
 #include "dpmsproc.h"
bf2bd78db20e 6874875 Xorg needs to have privilege to make PCITOOL_DEVICE_SET_REG and PCITOOL_DEVICE_GET_REG ioctl calls
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 705
diff changeset
    39
 #endif
bf2bd78db20e 6874875 Xorg needs to have privilege to make PCITOOL_DEVICE_SET_REG and PCITOOL_DEVICE_GET_REG ioctl calls
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 705
diff changeset
    40
 
bf2bd78db20e 6874875 Xorg needs to have privilege to make PCITOOL_DEVICE_SET_REG and PCITOOL_DEVICE_GET_REG ioctl calls
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 705
diff changeset
    41
+#ifdef SUNSOFT
bf2bd78db20e 6874875 Xorg needs to have privilege to make PCITOOL_DEVICE_SET_REG and PCITOOL_DEVICE_GET_REG ioctl calls
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 705
diff changeset
    42
+extern void DtloginInit(void);
bf2bd78db20e 6874875 Xorg needs to have privilege to make PCITOOL_DEVICE_SET_REG and PCITOOL_DEVICE_GET_REG ioctl calls
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 705
diff changeset
    43
+extern void DtloginCloseDown(void);
bf2bd78db20e 6874875 Xorg needs to have privilege to make PCITOOL_DEVICE_SET_REG and PCITOOL_DEVICE_GET_REG ioctl calls
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 705
diff changeset
    44
+#endif /* SUNSOFT */
bf2bd78db20e 6874875 Xorg needs to have privilege to make PCITOOL_DEVICE_SET_REG and PCITOOL_DEVICE_GET_REG ioctl calls
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 705
diff changeset
    45
+
bf2bd78db20e 6874875 Xorg needs to have privilege to make PCITOOL_DEVICE_SET_REG and PCITOOL_DEVICE_GET_REG ioctl calls
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 705
diff changeset
    46
 extern void Dispatch(void);
bf2bd78db20e 6874875 Xorg needs to have privilege to make PCITOOL_DEVICE_SET_REG and PCITOOL_DEVICE_GET_REG ioctl calls
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 705
diff changeset
    47
 
1124
7bc7e624f965 7042476 Xorg 1.10 & associated module updates [PSARC/2011/214]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1088
diff changeset
    48
 #ifdef XQUARTZ
7bc7e624f965 7042476 Xorg 1.10 & associated module updates [PSARC/2011/214]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1088
diff changeset
    49
@@ -165,6 +170,13 @@ int main(int argc, char *argv[], char *envp[])
1088
1c99106ccbe0 6983602 Xorg 1.9 integration [PSARC/2011/008]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
    50
 	InitBlockAndWakeupHandlers();
781
bf2bd78db20e 6874875 Xorg needs to have privilege to make PCITOOL_DEVICE_SET_REG and PCITOOL_DEVICE_GET_REG ioctl calls
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 705
diff changeset
    51
 	/* Perform any operating system dependent initializations you'd like */
bf2bd78db20e 6874875 Xorg needs to have privilege to make PCITOOL_DEVICE_SET_REG and PCITOOL_DEVICE_GET_REG ioctl calls
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 705
diff changeset
    52
 	OsInit();
bf2bd78db20e 6874875 Xorg needs to have privilege to make PCITOOL_DEVICE_SET_REG and PCITOOL_DEVICE_GET_REG ioctl calls
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 705
diff changeset
    53
+
bf2bd78db20e 6874875 Xorg needs to have privilege to make PCITOOL_DEVICE_SET_REG and PCITOOL_DEVICE_GET_REG ioctl calls
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 705
diff changeset
    54
+#ifdef SUNSOFT
bf2bd78db20e 6874875 Xorg needs to have privilege to make PCITOOL_DEVICE_SET_REG and PCITOOL_DEVICE_GET_REG ioctl calls
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 705
diff changeset
    55
+	/* Create pipe for dtlogin authentication info before we tell dtlogin 
bf2bd78db20e 6874875 Xorg needs to have privilege to make PCITOOL_DEVICE_SET_REG and PCITOOL_DEVICE_GET_REG ioctl calls
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 705
diff changeset
    56
+	   we're done and ready for it to run. */
bf2bd78db20e 6874875 Xorg needs to have privilege to make PCITOOL_DEVICE_SET_REG and PCITOOL_DEVICE_GET_REG ioctl calls
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 705
diff changeset
    57
+	DtloginInit ();
bf2bd78db20e 6874875 Xorg needs to have privilege to make PCITOOL_DEVICE_SET_REG and PCITOOL_DEVICE_GET_REG ioctl calls
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 705
diff changeset
    58
+#endif
bf2bd78db20e 6874875 Xorg needs to have privilege to make PCITOOL_DEVICE_SET_REG and PCITOOL_DEVICE_GET_REG ioctl calls
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 705
diff changeset
    59
+
bf2bd78db20e 6874875 Xorg needs to have privilege to make PCITOOL_DEVICE_SET_REG and PCITOOL_DEVICE_GET_REG ioctl calls
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 705
diff changeset
    60
 	if(serverGeneration == 1)
bf2bd78db20e 6874875 Xorg needs to have privilege to make PCITOOL_DEVICE_SET_REG and PCITOOL_DEVICE_GET_REG ioctl calls
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 705
diff changeset
    61
 	{
bf2bd78db20e 6874875 Xorg needs to have privilege to make PCITOOL_DEVICE_SET_REG and PCITOOL_DEVICE_GET_REG ioctl calls
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 705
diff changeset
    62
 	    CreateWellKnownSockets();
1179
4ad971e180c3 7073739 Mass minor bugfix update to X.Org upstream release [July 2011 edition]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1142
diff changeset
    63
@@ -294,6 +306,11 @@ int main(int argc, char *argv[], char *envp[])
1142
c235d03e9fab 7051435 xorg-server 1.10.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1124
diff changeset
    64
 	pthread_mutex_unlock(&serverRunningMutex);
c235d03e9fab 7051435 xorg-server 1.10.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1124
diff changeset
    65
 #endif
781
bf2bd78db20e 6874875 Xorg needs to have privilege to make PCITOOL_DEVICE_SET_REG and PCITOOL_DEVICE_GET_REG ioctl calls
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 705
diff changeset
    66
 
bf2bd78db20e 6874875 Xorg needs to have privilege to make PCITOOL_DEVICE_SET_REG and PCITOOL_DEVICE_GET_REG ioctl calls
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 705
diff changeset
    67
+#ifdef SUNSOFT
bf2bd78db20e 6874875 Xorg needs to have privilege to make PCITOOL_DEVICE_SET_REG and PCITOOL_DEVICE_GET_REG ioctl calls
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 705
diff changeset
    68
+	/* Return to root privs before calling the rest of close down */
bf2bd78db20e 6874875 Xorg needs to have privilege to make PCITOOL_DEVICE_SET_REG and PCITOOL_DEVICE_GET_REG ioctl calls
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 705
diff changeset
    69
+	DtloginCloseDown ();
bf2bd78db20e 6874875 Xorg needs to have privilege to make PCITOOL_DEVICE_SET_REG and PCITOOL_DEVICE_GET_REG ioctl calls
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 705
diff changeset
    70
+#endif
bf2bd78db20e 6874875 Xorg needs to have privilege to make PCITOOL_DEVICE_SET_REG and PCITOOL_DEVICE_GET_REG ioctl calls
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 705
diff changeset
    71
+
1142
c235d03e9fab 7051435 xorg-server 1.10.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1124
diff changeset
    72
 	UndisplayDevices();
781
bf2bd78db20e 6874875 Xorg needs to have privilege to make PCITOOL_DEVICE_SET_REG and PCITOOL_DEVICE_GET_REG ioctl calls
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 705
diff changeset
    73
 
bf2bd78db20e 6874875 Xorg needs to have privilege to make PCITOOL_DEVICE_SET_REG and PCITOOL_DEVICE_GET_REG ioctl calls
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 705
diff changeset
    74
 	/* Now free up whatever must be freed */
1124
7bc7e624f965 7042476 Xorg 1.10 & associated module updates [PSARC/2011/214]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1088
diff changeset
    75
diff --git a/os/Makefile.am b/os/Makefile.am
1179
4ad971e180c3 7073739 Mass minor bugfix update to X.Org upstream release [July 2011 edition]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1142
diff changeset
    76
index 725691d..c41954d 100644
1124
7bc7e624f965 7042476 Xorg 1.10 & associated module updates [PSARC/2011/214]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1088
diff changeset
    77
--- a/os/Makefile.am
7bc7e624f965 7042476 Xorg 1.10 & associated module updates [PSARC/2011/214]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1088
diff changeset
    78
+++ b/os/Makefile.am
1179
4ad971e180c3 7073739 Mass minor bugfix update to X.Org upstream release [July 2011 edition]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1142
diff changeset
    79
@@ -41,6 +41,9 @@ if NEED_STRLCAT
194
c2b76d8a41f7 6580970 Xorg Server 1.3 [PSARC 2007/434]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 191
diff changeset
    80
 libos_la_SOURCES += $(STRLCAT_SRCS)
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    81
 endif
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    82
 
1088
1c99106ccbe0 6983602 Xorg 1.9 integration [PSARC/2011/008]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
    83
+libos_la_SOURCES += dtlogin.c
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    84
+libos_la_LIBADD = -lproject
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    85
+
606
068c11b419c9 6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 194
diff changeset
    86
 EXTRA_DIST = $(SECURERPC_SRCS) $(INTERNALMALLOC_SRCS) \
068c11b419c9 6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 194
diff changeset
    87
      $(XDMCP_SRCS) $(STRLCAT_SRCS)
068c11b419c9 6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 194
diff changeset
    88
 
1124
7bc7e624f965 7042476 Xorg 1.10 & associated module updates [PSARC/2011/214]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1088
diff changeset
    89
diff --git a/os/auth.c b/os/auth.c
7bc7e624f965 7042476 Xorg 1.10 & associated module updates [PSARC/2011/214]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1088
diff changeset
    90
index 7685751..995235e 100644
7bc7e624f965 7042476 Xorg 1.10 & associated module updates [PSARC/2011/214]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1088
diff changeset
    91
--- a/os/auth.c
7bc7e624f965 7042476 Xorg 1.10 & associated module updates [PSARC/2011/214]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1088
diff changeset
    92
+++ b/os/auth.c
7bc7e624f965 7042476 Xorg 1.10 & associated module updates [PSARC/2011/214]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1088
diff changeset
    93
@@ -290,6 +290,19 @@ AddAuthorization (unsigned name_length, const char *name,
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    94
     return 0;
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    95
 }
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    96
 
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    97
+#ifdef SUNSOFT
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    98
+/* This function is called from dtlogin.c 
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    99
+ * This is added to do "chmod authorization_file" since
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   100
+ * this file is owned by root and we need to change this
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   101
+ * to user logged on.  
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   102
+ */
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   103
+const char *
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   104
+GetAuthFilename(void)
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   105
+{
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   106
+    return (authorization_file);
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   107
+}
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   108
+#endif
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   109
+
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   110
 #ifdef XCSECURITY
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   111
 
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   112
 XID