open-src/xserver/xorg/xtsol.patch
author henryzh <henry.zhao@oracle.com>
Wed, 30 Jul 2014 17:12:53 -0700
changeset 1464 5ae7d5f1ccc6
parent 1340 6585ca03b32d
child 1549 4b5a9782609e
permissions -rw-r--r--
19212677 Multi-session doesn't work properly when invoked with "-isolateDevice" option
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1276
52f85727ce94 7161868 Update X.Org modules to X11R7.7 RC1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1265
diff changeset
     1
# Copyright (c) 2006, 2012, Oracle and/or its affiliates. All rights reserved.
606
068c11b419c9 6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 378
diff changeset
     2
#
068c11b419c9 6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 378
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: 918
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: 918
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: 918
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: 918
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: 918
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: 918
diff changeset
     9
#
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 918
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: 918
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: 918
diff changeset
    12
# Software.
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 918
diff changeset
    13
#
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 918
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: 918
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: 918
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: 918
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: 918
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: 918
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: 918
diff changeset
    20
# DEALINGS IN THE SOFTWARE.
1088
1c99106ccbe0 6983602 Xorg 1.9 integration [PSARC/2011/008]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1026
diff changeset
    21
1124
7bc7e624f965 7042476 Xorg 1.10 & associated module updates [PSARC/2011/214]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1088
diff changeset
    22
diff --git a/Makefile.am b/Makefile.am
1340
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
    23
index 7ce17e3..8d5c65d 100644
1124
7bc7e624f965 7042476 Xorg 1.10 & associated module updates [PSARC/2011/214]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1088
diff changeset
    24
--- a/Makefile.am
7bc7e624f965 7042476 Xorg 1.10 & associated module updates [PSARC/2011/214]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1088
diff changeset
    25
+++ b/Makefile.am
705
24ca414edbff 6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 679
diff changeset
    26
@@ -17,6 +17,10 @@ if RECORD
24ca414edbff 6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 679
diff changeset
    27
 RECORD_DIR=record
24ca414edbff 6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 679
diff changeset
    28
 endif
24ca414edbff 6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 679
diff changeset
    29
 
24ca414edbff 6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 679
diff changeset
    30
+if BUILD_TSOL_MODULE
24ca414edbff 6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 679
diff changeset
    31
+TSOL_DIR=tsol
24ca414edbff 6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 679
diff changeset
    32
+endif
24ca414edbff 6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 679
diff changeset
    33
+
24ca414edbff 6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 679
diff changeset
    34
 SUBDIRS = \
24ca414edbff 6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 679
diff changeset
    35
 	doc \
1265
0b5cc5c013e4 7083537 Xorg 1.12 & associated module updates
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 1188
diff changeset
    36
 	man \
0b5cc5c013e4 7083537 Xorg 1.12 & associated module updates
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 1188
diff changeset
    37
@@ -38,6 +42,7 @@ SUBDIRS = \
705
24ca414edbff 6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 679
diff changeset
    38
 	$(COMPOSITE_DIR) \
24ca414edbff 6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 679
diff changeset
    39
 	$(GLX_DIR) \
24ca414edbff 6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 679
diff changeset
    40
 	IA \
24ca414edbff 6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 679
diff changeset
    41
+	$(TSOL_DIR) \
24ca414edbff 6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 679
diff changeset
    42
 	exa \
24ca414edbff 6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 679
diff changeset
    43
 	config \
851
d428083dbbdd 6905171 X11R7.5 / Xorg 1.7.3 integration
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 822
diff changeset
    44
 	hw \
1124
7bc7e624f965 7042476 Xorg 1.10 & associated module updates [PSARC/2011/214]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1088
diff changeset
    45
diff --git a/Xext/security.c b/Xext/security.c
1340
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
    46
index 6cc9aa0..3fed0b3 100644
1124
7bc7e624f965 7042476 Xorg 1.10 & associated module updates [PSARC/2011/214]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1088
diff changeset
    47
--- a/Xext/security.c
7bc7e624f965 7042476 Xorg 1.10 & associated module updates [PSARC/2011/214]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1088
diff changeset
    48
+++ b/Xext/security.c
1340
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
    49
@@ -1084,3 +1084,27 @@ SecurityExtensionInit(void)
705
24ca414edbff 6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 679
diff changeset
    50
     /* Label objects that were created before we could register ourself */
24ca414edbff 6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 679
diff changeset
    51
     SecurityLabelInitial();
24ca414edbff 6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 679
diff changeset
    52
 }
24ca414edbff 6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 679
diff changeset
    53
+
24ca414edbff 6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 679
diff changeset
    54
+/* API needed for Xtsol module to get/set client trustLevel */
24ca414edbff 6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 679
diff changeset
    55
+_X_EXPORT unsigned int
24ca414edbff 6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 679
diff changeset
    56
+getClientTrustLevel(ClientPtr client)
24ca414edbff 6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 679
diff changeset
    57
+{
24ca414edbff 6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 679
diff changeset
    58
+    SecurityStateRec *state;
24ca414edbff 6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 679
diff changeset
    59
+
24ca414edbff 6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 679
diff changeset
    60
+    state = dixLookupPrivate(&client->devPrivates, stateKey);
24ca414edbff 6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 679
diff changeset
    61
+
24ca414edbff 6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 679
diff changeset
    62
+    return state->trustLevel;
24ca414edbff 6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 679
diff changeset
    63
+}
24ca414edbff 6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 679
diff changeset
    64
+
24ca414edbff 6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 679
diff changeset
    65
+_X_EXPORT unsigned int
24ca414edbff 6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 679
diff changeset
    66
+setClientTrustLevel(ClientPtr client, unsigned int newLevel)
24ca414edbff 6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 679
diff changeset
    67
+{
24ca414edbff 6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 679
diff changeset
    68
+    SecurityStateRec *state;
24ca414edbff 6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 679
diff changeset
    69
+    unsigned int oldLevel;
24ca414edbff 6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 679
diff changeset
    70
+
24ca414edbff 6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 679
diff changeset
    71
+    state = dixLookupPrivate(&client->devPrivates, stateKey);
24ca414edbff 6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 679
diff changeset
    72
+    oldLevel = state->trustLevel;
24ca414edbff 6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 679
diff changeset
    73
+    state->trustLevel = newLevel;
24ca414edbff 6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 679
diff changeset
    74
+    
24ca414edbff 6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 679
diff changeset
    75
+    return oldLevel;
24ca414edbff 6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 679
diff changeset
    76
+}
1124
7bc7e624f965 7042476 Xorg 1.10 & associated module updates [PSARC/2011/214]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1088
diff changeset
    77
diff --git a/Xext/securitysrv.h b/Xext/securitysrv.h
1276
52f85727ce94 7161868 Update X.Org modules to X11R7.7 RC1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1265
diff changeset
    78
index 8904242..56dbfc6 100644
1124
7bc7e624f965 7042476 Xorg 1.10 & associated module updates [PSARC/2011/214]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1088
diff changeset
    79
--- a/Xext/securitysrv.h
7bc7e624f965 7042476 Xorg 1.10 & associated module updates [PSARC/2011/214]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1088
diff changeset
    80
+++ b/Xext/securitysrv.h
1276
52f85727ce94 7161868 Update X.Org modules to X11R7.7 RC1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1265
diff changeset
    81
@@ -79,4 +79,8 @@ typedef struct {
705
24ca414edbff 6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 679
diff changeset
    82
 /* Give this value or higher to the -audit option to get security messages */
24ca414edbff 6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 679
diff changeset
    83
 #define SECURITY_AUDIT_LEVEL 4
24ca414edbff 6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 679
diff changeset
    84
 
24ca414edbff 6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 679
diff changeset
    85
+/* API needed for Xtsol module to get/set client trustLevel */
851
d428083dbbdd 6905171 X11R7.5 / Xorg 1.7.3 integration
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 822
diff changeset
    86
+extern _X_EXPORT unsigned int getClientTrustLevel(ClientPtr client);
d428083dbbdd 6905171 X11R7.5 / Xorg 1.7.3 integration
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 822
diff changeset
    87
+extern _X_EXPORT unsigned int setClientTrustLevel(ClientPtr client, unsigned int newLevel);
705
24ca414edbff 6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 679
diff changeset
    88
+
1276
52f85727ce94 7161868 Update X.Org modules to X11R7.7 RC1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1265
diff changeset
    89
 #endif                          /* _SECURITY_SRV_H */
1124
7bc7e624f965 7042476 Xorg 1.10 & associated module updates [PSARC/2011/214]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1088
diff changeset
    90
diff --git a/configure.ac b/configure.ac
1340
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
    91
index 5a8e173..017fcd7 100644
1124
7bc7e624f965 7042476 Xorg 1.10 & associated module updates [PSARC/2011/214]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1088
diff changeset
    92
--- a/configure.ac
7bc7e624f965 7042476 Xorg 1.10 & associated module updates [PSARC/2011/214]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1088
diff changeset
    93
+++ b/configure.ac
1340
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
    94
@@ -223,6 +223,14 @@ dnl Find the math libary, then check for cbrt function in it.
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    95
 AC_CHECK_LIB(m, sqrt)
1265
0b5cc5c013e4 7083537 Xorg 1.12 & associated module updates
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 1188
diff changeset
    96
 AC_CHECK_FUNCS([cbrt])
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    97
 
196
b7c1d614eb84 Trusted Extensions bug fixes:
Lokanath Das <Lokanath.Das@Sun.COM>
parents: 194
diff changeset
    98
+dnl Check for libtsol for Solaris Trusted Extensions module
b7c1d614eb84 Trusted Extensions bug fixes:
Lokanath Das <Lokanath.Das@Sun.COM>
parents: 194
diff changeset
    99
+AC_CHECK_LIB(tsol, bsllow, [BUILD_TSOL_MODULE=yes], [BUILD_TSOL_MODULE=no])
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   100
+AM_CONDITIONAL(BUILD_TSOL_MODULE, [test x$BUILD_TSOL_MODULE = xyes])
235
06772554f851 6572087 ship Xvnc for Solaris [PSARC/2007/545]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 196
diff changeset
   101
+if test "x$BUILD_TSOL_MODULE" = xyes; then
606
068c11b419c9 6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 378
diff changeset
   102
+	TSOL_LIB='$(top_builddir)/tsol/libxtsol.la'
068c11b419c9 6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 378
diff changeset
   103
+	TSOL_SYS_LIBS='-ltsol -ltsnet -lsecdb -lbsm'
235
06772554f851 6572087 ship Xvnc for Solaris [PSARC/2007/545]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 196
diff changeset
   104
+fi
98
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
 AC_CHECK_HEADERS([ndbm.h dbm.h rpcsvc/dbm.h])
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
 dnl AGPGART headers
1340
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   109
@@ -1569,6 +1577,8 @@ AM_CONDITIONAL(XVFB, [test "x$XVFB" = xyes])
235
06772554f851 6572087 ship Xvnc for Solaris [PSARC/2007/545]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 196
diff changeset
   110
 if test "x$XVFB" = xyes; then
1124
7bc7e624f965 7042476 Xorg 1.10 & associated module updates [PSARC/2011/214]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1088
diff changeset
   111
 	XVFB_LIBS="$FB_LIB $FIXES_LIB $XEXT_LIB $DBE_LIB $RECORD_LIB $GLX_LIBS $RANDR_LIB $RENDER_LIB $DAMAGE_LIB $MIEXT_SYNC_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $COMPOSITE_LIB"
851
d428083dbbdd 6905171 X11R7.5 / Xorg 1.7.3 integration
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 822
diff changeset
   112
 	XVFB_SYS_LIBS="$XVFBMODULES_LIBS $GLX_SYS_LIBS"
d428083dbbdd 6905171 X11R7.5 / Xorg 1.7.3 integration
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 822
diff changeset
   113
+	XVFB_LIBS="$XVFB_LIBS $TSOL_LIB"
d428083dbbdd 6905171 X11R7.5 / Xorg 1.7.3 integration
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 822
diff changeset
   114
+	XVFB_SYS_LIBS="$XVFB_SYS_LIBS $TSOL_SYS_LIBS"
235
06772554f851 6572087 ship Xvnc for Solaris [PSARC/2007/545]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 196
diff changeset
   115
 	AC_SUBST([XVFB_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: 378
diff changeset
   116
 	AC_SUBST([XVFB_SYS_LIBS])
235
06772554f851 6572087 ship Xvnc for Solaris [PSARC/2007/545]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 196
diff changeset
   117
 fi
1340
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   118
@@ -1590,6 +1600,8 @@ if test "x$XNEST" = xyes; then
851
d428083dbbdd 6905171 X11R7.5 / Xorg 1.7.3 integration
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 822
diff changeset
   119
 	fi
1265
0b5cc5c013e4 7083537 Xorg 1.12 & associated module updates
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 1188
diff changeset
   120
 	XNEST_LIBS="$FB_LIB $FIXES_LIB $MI_LIB $XEXT_LIB $DBE_LIB $RECORD_LIB $GLX_LIBS $RANDR_LIB $RENDER_LIB $DAMAGE_LIB $MIEXT_SYNC_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $COMPOSITE_LIB $MAIN_LIB $DIX_LIB $OS_LIB"
851
d428083dbbdd 6905171 X11R7.5 / Xorg 1.7.3 integration
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 822
diff changeset
   121
 	XNEST_SYS_LIBS="$XNESTMODULES_LIBS $GLX_SYS_LIBS"
d428083dbbdd 6905171 X11R7.5 / Xorg 1.7.3 integration
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 822
diff changeset
   122
+	XNEST_LIBS="$XNEST_LIBS $TSOL_LIB"
d428083dbbdd 6905171 X11R7.5 / Xorg 1.7.3 integration
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 822
diff changeset
   123
+	XNEST_SYS_LIBS="$XNEST_SYS_LIBS $TSOL_SYS_LIBS"
235
06772554f851 6572087 ship Xvnc for Solaris [PSARC/2007/545]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 196
diff changeset
   124
 	AC_SUBST([XNEST_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: 378
diff changeset
   125
 	AC_SUBST([XNEST_SYS_LIBS])
235
06772554f851 6572087 ship Xvnc for Solaris [PSARC/2007/545]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 196
diff changeset
   126
 fi
1340
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   127
@@ -2132,6 +2144,7 @@ if test "$KDRIVE" = yes; then
606
068c11b419c9 6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 378
diff changeset
   128
     KDRIVE_CFLAGS="$XSERVER_CFLAGS -DHAVE_KDRIVE_CONFIG_H $TSLIB_CFLAGS"
068c11b419c9 6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 378
diff changeset
   129
 
1124
7bc7e624f965 7042476 Xorg 1.10 & associated module updates [PSARC/2011/214]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1088
diff changeset
   130
     KDRIVE_PURE_LIBS="$FB_LIB $MI_LIB $FIXES_LIB $XEXT_LIB $DBE_LIB $RECORD_LIB $GLX_LIBS $RANDR_LIB $RENDER_LIB $DAMAGE_LIB $MIEXT_SYNC_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $COMPOSITE_LIB $OS_LIB"
851
d428083dbbdd 6905171 X11R7.5 / Xorg 1.7.3 integration
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 822
diff changeset
   131
+    KDRIVE_PURE_LIBS="$KDRIVE_PURE_LIBS $TSOL_LIB"
d428083dbbdd 6905171 X11R7.5 / Xorg 1.7.3 integration
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 822
diff changeset
   132
     KDRIVE_LIB='$(top_builddir)/hw/kdrive/src/libkdrive.la'
235
06772554f851 6572087 ship Xvnc for Solaris [PSARC/2007/545]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 196
diff changeset
   133
     case $host_os in
06772554f851 6572087 ship Xvnc for Solaris [PSARC/2007/545]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 196
diff changeset
   134
 	*linux*)
1340
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   135
@@ -2319,3 +2332,6 @@ xorg-server.pc
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   136
 
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   137
 # Add Sun IA extension
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   138
 AC_OUTPUT([IA/Makefile])
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   139
+
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   140
+# Add Sun Trusted Extensions extension
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   141
+AC_OUTPUT([tsol/Makefile])
1124
7bc7e624f965 7042476 Xorg 1.10 & associated module updates [PSARC/2011/214]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1088
diff changeset
   142
diff --git a/dix/dispatch.c b/dix/dispatch.c
1340
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   143
index 0ce10c2..dd70ee7 100644
1124
7bc7e624f965 7042476 Xorg 1.10 & associated module updates [PSARC/2011/214]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1088
diff changeset
   144
--- a/dix/dispatch.c
7bc7e624f965 7042476 Xorg 1.10 & associated module updates [PSARC/2011/214]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1088
diff changeset
   145
+++ b/dix/dispatch.c
1276
52f85727ce94 7161868 Update X.Org modules to X11R7.7 RC1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1265
diff changeset
   146
@@ -73,8 +73,8 @@ Equipment Corporation.
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   147
 
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   148
 ******************************************************************/
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   149
 
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   150
-/* XSERVER_DTRACE additions:
1124
7bc7e624f965 7042476 Xorg 1.10 & associated module updates [PSARC/2011/214]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1088
diff changeset
   151
- * Copyright (c) 2005-2006, 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
   152
+/* 
943
294f64612d23 6948254 Mass update of X gate sources to Oracle copyright format
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 919
diff changeset
   153
+ * Copyright (c) 2005, 2006, 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
   154
  *
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   155
  * Permission is hereby granted, free of charge, to any person obtaining a
879
4bb8651330bd 6915162 Xorg server upgrade from 1.7.3 to 1.7.4
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 851
diff changeset
   156
  * copy of this software and associated documentation files (the "Software"),
1276
52f85727ce94 7161868 Update X.Org modules to X11R7.7 RC1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1265
diff changeset
   157
@@ -162,6 +162,10 @@ int connBlockScreenStart;
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   158
 
606
068c11b419c9 6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 378
diff changeset
   159
 static void KillAllClients(void);
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   160
 
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   161
+#ifdef TSOL
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   162
+SecurityHookPtr pSecHook = NULL;
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   163
+#endif /* TSOL */
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   164
+
1276
52f85727ce94 7161868 Update X.Org modules to X11R7.7 RC1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1265
diff changeset
   165
 static int nextFreeClientID;    /* always MIN free client ID */
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   166
 
1276
52f85727ce94 7161868 Update X.Org modules to X11R7.7 RC1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1265
diff changeset
   167
 static int nClients;            /* number of authorized clients */
1340
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   168
@@ -885,7 +889,12 @@ ProcCirculateWindow(ClientPtr client)
1088
1c99106ccbe0 6983602 Xorg 1.9 integration [PSARC/2011/008]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1026
diff changeset
   169
     return Success;
606
068c11b419c9 6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 378
diff changeset
   170
 }
068c11b419c9 6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 378
diff changeset
   171
 
068c11b419c9 6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 378
diff changeset
   172
-static int
068c11b419c9 6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 378
diff changeset
   173
+#ifdef TSOL
068c11b419c9 6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 378
diff changeset
   174
+_X_EXPORT
068c11b419c9 6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 378
diff changeset
   175
+#else
068c11b419c9 6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 378
diff changeset
   176
+static
068c11b419c9 6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 378
diff changeset
   177
+#endif
068c11b419c9 6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 378
diff changeset
   178
+int
1276
52f85727ce94 7161868 Update X.Org modules to X11R7.7 RC1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1265
diff changeset
   179
 GetGeometry(ClientPtr client, xGetGeometryReply * rep)
606
068c11b419c9 6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 378
diff changeset
   180
 {
068c11b419c9 6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 378
diff changeset
   181
     DrawablePtr pDraw;
1340
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   182
@@ -1966,7 +1975,12 @@ ProcPutImage(ClientPtr client)
1276
52f85727ce94 7161868 Update X.Org modules to X11R7.7 RC1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1265
diff changeset
   183
     return Success;
606
068c11b419c9 6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 378
diff changeset
   184
 }
068c11b419c9 6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 378
diff changeset
   185
 
068c11b419c9 6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 378
diff changeset
   186
-static int
068c11b419c9 6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 378
diff changeset
   187
+#ifdef TSOL
068c11b419c9 6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 378
diff changeset
   188
+_X_EXPORT
068c11b419c9 6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 378
diff changeset
   189
+#else
068c11b419c9 6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 378
diff changeset
   190
+static
068c11b419c9 6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 378
diff changeset
   191
+#endif
068c11b419c9 6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 378
diff changeset
   192
+int
1276
52f85727ce94 7161868 Update X.Org modules to X11R7.7 RC1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1265
diff changeset
   193
 DoGetImage(ClientPtr client, int format, Drawable drawable,
52f85727ce94 7161868 Update X.Org modules to X11R7.7 RC1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1265
diff changeset
   194
            int x, int y, int width, int height,
52f85727ce94 7161868 Update X.Org modules to X11R7.7 RC1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1265
diff changeset
   195
            Mask planemask, xGetImageReply ** im_return)
1188
54006236410a 7053074 [snv_166] xorg cores on launching gnome-panel-screenshot in labeled workspace
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1179
diff changeset
   196
diff --git a/dix/events.c b/dix/events.c
1340
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   197
index ddb5b34..14c2833 100644
1188
54006236410a 7053074 [snv_166] xorg cores on launching gnome-panel-screenshot in labeled workspace
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1179
diff changeset
   198
--- a/dix/events.c
54006236410a 7053074 [snv_166] xorg cores on launching gnome-panel-screenshot in labeled workspace
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1179
diff changeset
   199
+++ b/dix/events.c
1340
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   200
@@ -2771,6 +2771,9 @@ PointInBorderSize(WindowPtr pWin, int x, int y)
1188
54006236410a 7053074 [snv_166] xorg cores on launching gnome-panel-screenshot in labeled workspace
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1179
diff changeset
   201
  *
54006236410a 7053074 [snv_166] xorg cores on launching gnome-panel-screenshot in labeled workspace
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1179
diff changeset
   202
  * @returns the window at the given coordinates.
54006236410a 7053074 [snv_166] xorg cores on launching gnome-panel-screenshot in labeled workspace
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1179
diff changeset
   203
  */
54006236410a 7053074 [snv_166] xorg cores on launching gnome-panel-screenshot in labeled workspace
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1179
diff changeset
   204
+#ifdef TSOL
54006236410a 7053074 [snv_166] xorg cores on launching gnome-panel-screenshot in labeled workspace
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1179
diff changeset
   205
+_X_EXPORT
54006236410a 7053074 [snv_166] xorg cores on launching gnome-panel-screenshot in labeled workspace
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1179
diff changeset
   206
+#endif
54006236410a 7053074 [snv_166] xorg cores on launching gnome-panel-screenshot in labeled workspace
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1179
diff changeset
   207
 WindowPtr
54006236410a 7053074 [snv_166] xorg cores on launching gnome-panel-screenshot in labeled workspace
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1179
diff changeset
   208
 XYToWindow(SpritePtr pSprite, int x, int y)
54006236410a 7053074 [snv_166] xorg cores on launching gnome-panel-screenshot in labeled workspace
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1179
diff changeset
   209
 {
1124
7bc7e624f965 7042476 Xorg 1.10 & associated module updates [PSARC/2011/214]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1088
diff changeset
   210
diff --git a/dix/window.c b/dix/window.c
1340
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   211
index 49ef4a0..3f2a99e 100644
1124
7bc7e624f965 7042476 Xorg 1.10 & associated module updates [PSARC/2011/214]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1088
diff changeset
   212
--- a/dix/window.c
7bc7e624f965 7042476 Xorg 1.10 & associated module updates [PSARC/2011/214]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1088
diff changeset
   213
+++ b/dix/window.c
1276
52f85727ce94 7161868 Update X.Org modules to X11R7.7 RC1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1265
diff changeset
   214
@@ -96,6 +96,34 @@ Equipment Corporation.
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   215
 
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   216
 ******************************************************************/
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   217
 
943
294f64612d23 6948254 Mass update of X gate sources to Oracle copyright format
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 919
diff changeset
   218
+/* Copyright (c) 2006, 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
   219
+ *
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   220
+ * Permission is hereby granted, free of charge, to any person obtaining a
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   221
+ * copy of this software and associated documentation files (the
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   222
+ * "Software"), to deal in the Software without restriction, including
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   223
+ * without limitation the rights to use, copy, modify, merge, publish,
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   224
+ * distribute, and/or sell copies of the Software, and to permit persons
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   225
+ * to whom the Software is furnished to do so, provided that the above
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   226
+ * copyright notice(s) and this permission notice appear in all copies of
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   227
+ * the Software and that both the above copyright notice(s) and this
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   228
+ * permission notice appear in supporting documentation.
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   229
+ *
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   230
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   231
+ * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   232
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   233
+ * OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   234
+ * HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   235
+ * INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   236
+ * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   237
+ * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   238
+ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   239
+ *
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   240
+ * Except as contained in this notice, the name of a copyright holder
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   241
+ * shall not be used in advertising or otherwise to promote the sale, use
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   242
+ * or other dealings in this Software without prior written authorization
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   243
+ * of the copyright holder.
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   244
+ */ 
1276
52f85727ce94 7161868 Update X.Org modules to X11R7.7 RC1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1265
diff changeset
   245
+
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   246
 #ifdef HAVE_DIX_CONFIG_H
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   247
 #include <dix-config.h>
1276
52f85727ce94 7161868 Update X.Org modules to X11R7.7 RC1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1265
diff changeset
   248
 #endif
52f85727ce94 7161868 Update X.Org modules to X11R7.7 RC1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1265
diff changeset
   249
@@ -180,6 +208,11 @@ static Bool TileScreenSaver(ScreenPtr pScreen, int kind);
705
24ca414edbff 6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 679
diff changeset
   250
 
24ca414edbff 6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 679
diff changeset
   251
 #define SubStrSend(pWin,pParent) (StrSend(pWin) || SubSend(pParent))
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   252
 
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   253
+#ifdef TSOL
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   254
+#include "extnsionst.h"
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   255
+extern SecurityHookPtr pSecHook;
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   256
+#endif /* TSOL */
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   257
+
1265
0b5cc5c013e4 7083537 Xorg 1.12 & associated module updates
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 1188
diff changeset
   258
 #ifdef COMPOSITE
0b5cc5c013e4 7083537 Xorg 1.12 & associated module updates
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 1188
diff changeset
   259
 static const char *overlay_win_name = "<composite overlay>";
0b5cc5c013e4 7083537 Xorg 1.12 & associated module updates
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 1188
diff changeset
   260
 #endif
1340
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   261
@@ -1831,7 +1864,12 @@ IsSiblingAboveMe(WindowPtr pMe, WindowPtr pSib)
1088
1c99106ccbe0 6983602 Xorg 1.9 integration [PSARC/2011/008]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1026
diff changeset
   262
     return Below;
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   263
 }
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   264
 
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   265
-static BoxPtr
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   266
+#ifdef TSOL
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   267
+_X_EXPORT
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   268
+#else
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   269
+static
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   270
+#endif
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   271
+BoxPtr
1276
52f85727ce94 7161868 Update X.Org modules to X11R7.7 RC1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1265
diff changeset
   272
 WindowExtents(WindowPtr pWin, BoxPtr pBox)
52f85727ce94 7161868 Update X.Org modules to X11R7.7 RC1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1265
diff changeset
   273
 {
52f85727ce94 7161868 Update X.Org modules to X11R7.7 RC1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1265
diff changeset
   274
     pBox->x1 = pWin->drawable.x - wBorderWidth(pWin);
1340
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   275
@@ -1858,7 +1896,12 @@ MakeBoundingRegion(WindowPtr pWin, BoxPtr pBox)
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   276
     return pRgn;
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   277
 }
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   278
 
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   279
-static Bool
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   280
+#ifdef TSOL
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   281
+_X_EXPORT
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   282
+#else
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   283
+static
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   284
+#endif
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   285
+Bool
1276
52f85727ce94 7161868 Update X.Org modules to X11R7.7 RC1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1265
diff changeset
   286
 ShapeOverlap(WindowPtr pWin, BoxPtr pWinBox, WindowPtr pSib, BoxPtr pSibBox)
52f85727ce94 7161868 Update X.Org modules to X11R7.7 RC1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1265
diff changeset
   287
 {
52f85727ce94 7161868 Update X.Org modules to X11R7.7 RC1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1265
diff changeset
   288
     RegionPtr pWinRgn, pSibRgn;
1340
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   289
@@ -2034,7 +2077,12 @@ WhereDoIGoInTheStack(WindowPtr pWin,
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   290
     }
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   291
 }
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   292
 
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   293
-static void
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   294
+#ifdef TSOL
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   295
+_X_EXPORT
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   296
+#else
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   297
+static
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   298
+#endif
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   299
+void
1276
52f85727ce94 7161868 Update X.Org modules to X11R7.7 RC1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1265
diff changeset
   300
 ReflectStackChange(WindowPtr pWin, WindowPtr pSib, VTKind kind)
52f85727ce94 7161868 Update X.Org modules to X11R7.7 RC1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1265
diff changeset
   301
 {
52f85727ce94 7161868 Update X.Org modules to X11R7.7 RC1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1265
diff changeset
   302
 /* Note that pSib might be NULL */
1124
7bc7e624f965 7042476 Xorg 1.10 & associated module updates [PSARC/2011/214]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1088
diff changeset
   303
diff --git a/hw/xfree86/common/xf86Config.c b/hw/xfree86/common/xf86Config.c
1340
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   304
index 907a103..af8a89e 100644
1124
7bc7e624f965 7042476 Xorg 1.10 & associated module updates [PSARC/2011/214]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1088
diff changeset
   305
--- a/hw/xfree86/common/xf86Config.c
7bc7e624f965 7042476 Xorg 1.10 & associated module updates [PSARC/2011/214]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1088
diff changeset
   306
+++ b/hw/xfree86/common/xf86Config.c
1340
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   307
@@ -118,6 +118,7 @@ static ModuleDefault ModuleDefaults[] = {
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   308
     {.name = "shadow",.toLoad = TRUE,.load_opt = NULL},
606
068c11b419c9 6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 378
diff changeset
   309
 #endif
1276
52f85727ce94 7161868 Update X.Org modules to X11R7.7 RC1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1265
diff changeset
   310
     {.name = "ia",.toLoad = TRUE,.load_opt = NULL},
52f85727ce94 7161868 Update X.Org modules to X11R7.7 RC1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1265
diff changeset
   311
+    {.name = "xtsol",.toLoad = TRUE,.load_opt = NULL},
52f85727ce94 7161868 Update X.Org modules to X11R7.7 RC1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1265
diff changeset
   312
     {.name = NULL,.toLoad = FALSE,.load_opt = NULL}
606
068c11b419c9 6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 378
diff changeset
   313
 };
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   314
 
1124
7bc7e624f965 7042476 Xorg 1.10 & associated module updates [PSARC/2011/214]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1088
diff changeset
   315
diff --git a/hw/xfree86/dixmods/Makefile.am b/hw/xfree86/dixmods/Makefile.am
1340
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   316
index fd524c5..c02677a 100644
1124
7bc7e624f965 7042476 Xorg 1.10 & associated module updates [PSARC/2011/214]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1088
diff changeset
   317
--- a/hw/xfree86/dixmods/Makefile.am
7bc7e624f965 7042476 Xorg 1.10 & associated module updates [PSARC/2011/214]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1088
diff changeset
   318
+++ b/hw/xfree86/dixmods/Makefile.am
1340
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   319
@@ -56,3 +56,11 @@ libia_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_builddir)/IA
606
068c11b419c9 6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 378
diff changeset
   320
 libia_la_LDFLAGS = -avoid-version
633
ef1b810146d6 6803747 Xtsol Xorg module has too many warnings when building
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 606
diff changeset
   321
 libia_la_LIBADD = $(top_builddir)/IA/libIA.la
606
068c11b419c9 6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 378
diff changeset
   322
 libia_la_SOURCES = iamodule.c
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   323
+
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   324
+if BUILD_TSOL_MODULE
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   325
+# Sun Trusted Extensions extension module additions
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   326
+extsmodule_LTLIBRARIES += libxtsol.la
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   327
+libxtsol_la_LDFLAGS = -avoid-version
1188
54006236410a 7053074 [snv_166] xorg cores on launching gnome-panel-screenshot in labeled workspace
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1179
diff changeset
   328
+libxtsol_la_LIBADD = $(top_builddir)/tsol/libxtsol.la $(PIXMAN_LIBS)
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   329
+libxtsol_la_SOURCES = tsolmodule.c
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   330
+endif
1340
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   331
diff --git a/include/dix.h b/include/dix.h
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   332
index 74123b5..6e53887 100644
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   333
--- a/include/dix.h
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   334
+++ b/include/dix.h
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   335
@@ -166,6 +166,14 @@ extern _X_EXPORT void MarkClientException(ClientPtr /*client */ );
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   336
 
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   337
 extern _X_HIDDEN Bool CreateConnectionBlock(void);
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   338
 
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   339
+#ifdef TSOL
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   340
+extern _X_EXPORT int DoGetImage(ClientPtr client, int format, Drawable drawable,
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   341
+                      int x, int y, int width, int height,
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   342
+                      Mask planemask, xGetImageReply **im_return);
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   343
+
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   344
+extern _X_EXPORT int GetGeometry(ClientPtr client, xGetGeometryReply *rep);
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   345
+#endif
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   346
+
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   347
 /* dixutils.c */
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   348
 
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   349
 extern _X_EXPORT int CompareISOLatin1Lowered(const unsigned char * /*a */ ,
1124
7bc7e624f965 7042476 Xorg 1.10 & associated module updates [PSARC/2011/214]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1088
diff changeset
   350
diff --git a/include/extnsionst.h b/include/extnsionst.h
1340
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   351
index e825236..d3e70d1 100644
1124
7bc7e624f965 7042476 Xorg 1.10 & associated module updates [PSARC/2011/214]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1088
diff changeset
   352
--- a/include/extnsionst.h
7bc7e624f965 7042476 Xorg 1.10 & associated module updates [PSARC/2011/214]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1088
diff changeset
   353
+++ b/include/extnsionst.h
1276
52f85727ce94 7161868 Update X.Org modules to X11R7.7 RC1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1265
diff changeset
   354
@@ -44,6 +44,34 @@ SOFTWARE.
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   355
 
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   356
 ******************************************************************/
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   357
 
943
294f64612d23 6948254 Mass update of X gate sources to Oracle copyright format
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 919
diff changeset
   358
+/* Copyright (c) 2006, 2007, 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
   359
+ *
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   360
+ * Permission is hereby granted, free of charge, to any person obtaining a
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   361
+ * copy of this software and associated documentation files (the
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   362
+ * "Software"), to deal in the Software without restriction, including
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   363
+ * without limitation the rights to use, copy, modify, merge, publish,
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   364
+ * distribute, and/or sell copies of the Software, and to permit persons
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   365
+ * to whom the Software is furnished to do so, provided that the above
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   366
+ * copyright notice(s) and this permission notice appear in all copies of
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   367
+ * the Software and that both the above copyright notice(s) and this
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   368
+ * permission notice appear in supporting documentation.
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   369
+ *
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   370
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   371
+ * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   372
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   373
+ * OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   374
+ * HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   375
+ * INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   376
+ * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   377
+ * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   378
+ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   379
+ *
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   380
+ * Except as contained in this notice, the name of a copyright holder
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   381
+ * shall not be used in advertising or otherwise to promote the sale, use
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   382
+ * or other dealings in this Software without prior written authorization
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   383
+ * of the copyright holder.
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   384
+ */ 
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   385
+
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   386
 #ifndef EXTENSIONSTRUCT_H
1276
52f85727ce94 7161868 Update X.Org modules to X11R7.7 RC1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1265
diff changeset
   387
 #define EXTENSIONSTRUCT_H
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   388
 
1276
52f85727ce94 7161868 Update X.Org modules to X11R7.7 RC1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1265
diff changeset
   389
@@ -54,6 +82,10 @@ SOFTWARE.
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   390
 #include "gc.h"
606
068c11b419c9 6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 378
diff changeset
   391
 #include "privates.h"
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   392
 
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   393
+#ifdef TSOL
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   394
+#include "inputstr.h"
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   395
+#endif /* TSOL */
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   396
+
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   397
 typedef struct _ExtensionEntry {
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   398
     int index;
1276
52f85727ce94 7161868 Update X.Org modules to X11R7.7 RC1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1265
diff changeset
   399
     void (*CloseDown) (         /* called at server shutdown */
52f85727ce94 7161868 Update X.Org modules to X11R7.7 RC1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1265
diff changeset
   400
@@ -109,4 +141,20 @@ CheckExtension(const char *extname);
52f85727ce94 7161868 Update X.Org modules to X11R7.7 RC1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1265
diff changeset
   401
 extern _X_EXPORT ExtensionEntry *
52f85727ce94 7161868 Update X.Org modules to X11R7.7 RC1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1265
diff changeset
   402
 GetExtensionEntry(int major);
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   403
 
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   404
+#ifdef TSOL
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   405
+typedef struct
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   406
+{
606
068c11b419c9 6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 378
diff changeset
   407
+    XID (*CheckAuthorization)(unsigned int, char *, unsigned int,
1295
0d6f24cf4163 7172111 cleanup crufty code in X that prevents parfait progress
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1276
diff changeset
   408
+        char *, ClientPtr , const char **);
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   409
+    int (*ChangeWindowProperty)(ClientPtr, WindowPtr, Atom, Atom, int, int,
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   410
+        unsigned long, pointer, Bool);
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   411
+    int (*DeleteProperty)(ClientPtr, WindowPtr, Atom);
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   412
+    void (*DeleteClientFromAnySelections)(ClientPtr);
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   413
+    void (*DeleteWindowFromAnySelections)(WindowPtr);
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   414
+} SecurityHook, *SecurityHookPtr;
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   415
+
851
d428083dbbdd 6905171 X11R7.5 / Xorg 1.7.3 integration
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 822
diff changeset
   416
+extern _X_EXPORT SecurityHookPtr pSecHook;
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   417
+
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   418
+#endif /* TSOL */
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   419
+
1276
52f85727ce94 7161868 Update X.Org modules to X11R7.7 RC1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1265
diff changeset
   420
 #endif                          /* EXTENSIONSTRUCT_H */
1124
7bc7e624f965 7042476 Xorg 1.10 & associated module updates [PSARC/2011/214]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1088
diff changeset
   421
diff --git a/include/input.h b/include/input.h
1340
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   422
index f8459b8..efb77f7 100644
1124
7bc7e624f965 7042476 Xorg 1.10 & associated module updates [PSARC/2011/214]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1088
diff changeset
   423
--- a/include/input.h
7bc7e624f965 7042476 Xorg 1.10 & associated module updates [PSARC/2011/214]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1088
diff changeset
   424
+++ b/include/input.h
1276
52f85727ce94 7161868 Update X.Org modules to X11R7.7 RC1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1265
diff changeset
   425
@@ -397,7 +397,7 @@ extern void NoteLedState(DeviceIntPtr /*keybd */ ,
52f85727ce94 7161868 Update X.Org modules to X11R7.7 RC1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1265
diff changeset
   426
                          int /*led */ ,
52f85727ce94 7161868 Update X.Org modules to X11R7.7 RC1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1265
diff changeset
   427
                          Bool /*on */ );
1088
1c99106ccbe0 6983602 Xorg 1.9 integration [PSARC/2011/008]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1026
diff changeset
   428
 
1276
52f85727ce94 7161868 Update X.Org modules to X11R7.7 RC1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1265
diff changeset
   429
-extern void MaybeStopHint(DeviceIntPtr /*device */ ,
52f85727ce94 7161868 Update X.Org modules to X11R7.7 RC1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1265
diff changeset
   430
+extern _X_EXPORT void MaybeStopHint(DeviceIntPtr /*device */ ,
52f85727ce94 7161868 Update X.Org modules to X11R7.7 RC1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1265
diff changeset
   431
                           ClientPtr /*client */ );
1088
1c99106ccbe0 6983602 Xorg 1.9 integration [PSARC/2011/008]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1026
diff changeset
   432
 
1276
52f85727ce94 7161868 Update X.Org modules to X11R7.7 RC1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1265
diff changeset
   433
 extern void ProcessPointerEvent(InternalEvent * /* ev */ ,
1340
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   434
diff --git a/include/window.h b/include/window.h
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   435
index f8fc2a5..f25a27a 100644
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   436
--- a/include/window.h
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   437
+++ b/include/window.h
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   438
@@ -227,5 +227,11 @@ extern _X_EXPORT void EnableMapUnmapEvents(WindowPtr /* pWin */ );
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   439
 extern _X_EXPORT void SetRootClip(ScreenPtr pScreen, Bool enable);
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   440
 extern _X_EXPORT void PrintWindowTree(void);
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   441
 
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   442
+#ifdef TSOL
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   443
+#include "validate.h" /* needed for VTKind enum definition */
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   444
+extern _X_EXPORT void ReflectStackChange(WindowPtr pWin, WindowPtr pSib,
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   445
+                                         VTKind  kind);
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   446
+#endif
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   447
+
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   448
 extern _X_EXPORT VisualPtr WindowGetVisual(WindowPtr /*pWin*/);
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   449
 #endif                          /* WINDOW_H */
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   450
diff --git a/mi/miinitext.c b/mi/miinitext.c
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   451
index 720dca4..26e7f5c 100644
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   452
--- a/mi/miinitext.c
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   453
+++ b/mi/miinitext.c
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   454
@@ -90,6 +90,7 @@ SOFTWARE.
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   455
 #undef DAMAGE
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   456
 #undef COMPOSITE
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   457
 #undef MITSHM
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   458
+#undef TSOL
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   459
 #endif
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   460
 
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   461
 #ifdef HAVE_XNEST_CONFIG_H
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   462
@@ -154,6 +155,9 @@ static ExtensionToggle ExtensionToggleList[] = {
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   463
 #ifdef SolarisIAExtension
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   464
     { IANAME /* "SolarisIA" */, &noIAExtension },
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   465
 #endif
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   466
+#ifdef TSOL
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   467
+    { TSOLNAME /* "SUN_TSOL" */, &noXTSolExtension },
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   468
+#endif
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   469
 #ifdef RES
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   470
     {"X-Resource", &noResExtension},
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   471
 #endif
1124
7bc7e624f965 7042476 Xorg 1.10 & associated module updates [PSARC/2011/214]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1088
diff changeset
   472
diff --git a/os/connection.c b/os/connection.c
1340
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   473
index 721ad65..62a227c 100644
1124
7bc7e624f965 7042476 Xorg 1.10 & associated module updates [PSARC/2011/214]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1088
diff changeset
   474
--- a/os/connection.c
7bc7e624f965 7042476 Xorg 1.10 & associated module updates [PSARC/2011/214]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1088
diff changeset
   475
+++ b/os/connection.c
1276
52f85727ce94 7161868 Update X.Org modules to X11R7.7 RC1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1265
diff changeset
   476
@@ -43,6 +43,33 @@ ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   477
 SOFTWARE.
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   478
 
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   479
 ******************************************************************/
943
294f64612d23 6948254 Mass update of X gate sources to Oracle copyright format
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 919
diff changeset
   480
+/* Copyright (c) 2006, 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
   481
+ *
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   482
+ * Permission is hereby granted, free of charge, to any person obtaining a
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   483
+ * copy of this software and associated documentation files (the
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   484
+ * "Software"), to deal in the Software without restriction, including
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   485
+ * without limitation the rights to use, copy, modify, merge, publish,
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   486
+ * distribute, and/or sell copies of the Software, and to permit persons
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   487
+ * to whom the Software is furnished to do so, provided that the above
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   488
+ * copyright notice(s) and this permission notice appear in all copies of
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   489
+ * the Software and that both the above copyright notice(s) and this
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   490
+ * permission notice appear in supporting documentation.
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   491
+ *
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   492
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   493
+ * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   494
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   495
+ * OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   496
+ * HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   497
+ * INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   498
+ * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   499
+ * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   500
+ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   501
+ *
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   502
+ * Except as contained in this notice, the name of a copyright holder
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   503
+ * shall not be used in advertising or otherwise to promote the sale, use
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   504
+ * or other dealings in this Software without prior written authorization
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   505
+ * of the copyright holder.
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   506
+ */
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   507
 /*****************************************************************
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   508
  *  Stuff to create connections --- OS dependent
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   509
  *
1340
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   510
@@ -255,6 +282,11 @@ static int ListenTransCount;
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   511
 
1276
52f85727ce94 7161868 Update X.Org modules to X11R7.7 RC1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1265
diff changeset
   512
 static void ErrorConnMax(XtransConnInfo /* trans_conn */ );
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   513
 
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   514
+#ifdef TSOL
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   515
+#include "extnsionst.h"
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   516
+extern SecurityHookPtr pSecHook;
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   517
+#endif /* TSOL */
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   518
+
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   519
 static XtransConnInfo
1276
52f85727ce94 7161868 Update X.Org modules to X11R7.7 RC1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1265
diff changeset
   520
 lookup_trans_conn(int fd)
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   521
 {
1340
6585ca03b32d 16027382 Update to Xorg 1.13.1 & xf86-video-mach64 6.9.4
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1333
diff changeset
   522
@@ -667,6 +699,12 @@ ClientAuthorized(ClientPtr client,
1276
52f85727ce94 7161868 Update X.Org modules to X11R7.7 RC1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1265
diff changeset
   523
     priv = (OsCommPtr) client->osPrivate;
705
24ca414edbff 6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 679
diff changeset
   524
     trans_conn = priv->trans_conn;
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   525
 
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   526
+#ifdef TSOL
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   527
+    if (pSecHook)
1276
52f85727ce94 7161868 Update X.Org modules to X11R7.7 RC1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1265
diff changeset
   528
+        auth_id = (*pSecHook->CheckAuthorization) (proto_n, auth_proto,
52f85727ce94 7161868 Update X.Org modules to X11R7.7 RC1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1265
diff changeset
   529
+                                   string_n, auth_string, client, &reason);
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   530
+    else
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   531
+#endif /* TSOL */
705
24ca414edbff 6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 679
diff changeset
   532
     /* Allow any client to connect without authorization on a launchd socket,
24ca414edbff 6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 679
diff changeset
   533
        because it is securely created -- this prevents a race condition on launch */
1276
52f85727ce94 7161868 Update X.Org modules to X11R7.7 RC1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1265
diff changeset
   534
     if (trans_conn->flags & TRANS_NOXAUTH) {