tsolextension.c revision 311
311N/A#pragma ident "@(#)tsolextension.c 1.28 08/02/08 SMI"
196N/A#include "auditwrite.h"
0N/A#define NEED_REPLIES
98N/A#ifdef HAVE_DIX_CONFIG_H
98N/A#include <dix-config.h>
0N/A#include "inputstr.h"
0N/A#include "extnsionst.h"
311N/A#include "../Xext/panoramiXsrv.h"
0N/A#ifdef XCSECURITY
0N/A#define _SECURITY_SERVER
0N/A#include "security.h"
0N/A#include "tsolpolicy.h"
0N/A#define BadCmapCookie 0
0N/Aextern void (*ReplySwapVector[]) ();
0N/Aextern void init_xtsol();
36N/Aextern void init_win_privsets();
36N/Aextern void free_win_privsets();
0N/Astatic unsigned char TsolReqCode = 0;
0N/Aextern unsigned int StripeHeight;
0N/Aextern int tsolClientPrivateIndex;
0N/Aextern int tsolWindowPrivateIndex;
0N/Aextern int tsolPixmapPrivateIndex;
0N/Aint OwnerUIDint;
0N/Aextern void LoadTsolConfig();
0N/Aextern void MakeTSOLAtoms();
0N/Aextern void UpdateTsolNode();
0N/Aextern int (*ProcVector[])();
0N/Aextern int (*SwappedProcVector[])();
0N/A if (!is_system_labeled()) {
0N/A init_xtsol();
0N/A sizeof (TsolInfoRec))) {
0N/A sizeof (TsolResRec))) {
0N/A sizeof (TsolResRec))) {
0N/A for (i = 0; i < PROCVECTORSIZE; i++) {
0N/A switch (access_mode) {
0N/A case SecurityReadAccess:
0N/A case SecurityWriteAccess:
0N/A case SecurityDestroyAccess:
0N/A case X_PolyPoint:
0N/A case X_PolyLine:
0N/A case X_FillPoly:
0N/A case X_PolyFillRectangle:
0N/A case X_PolyFillArc:
0N/A case X_PutImage:
0N/A case X_PolyText8:
0N/A case X_PolyText16:
0N/A case X_ImageText8:
0N/A case X_ImageText16:
0N/A switch (access_mode) {
0N/A case SecurityReadAccess:
0N/A case SecurityWriteAccess:
0N/A case X_ChangeProperty:
0N/A case X_DeleteProperty:
0N/A case X_GetProperty:
0N/A case X_ListProperties:
0N/A case X_RotateProperties:
0N/A switch (access_mode) {
0N/A case SecurityReadAccess:
0N/A case SecurityWriteAccess:
0N/A case ClientStateInitial:
0N/A case ClientStateRunning:
0N/A case ClientStateGone:
0N/A case X_SetPolyInstInfo:
0N/A case X_SetPropLabel:
0N/A case X_SetPropUID:
0N/A case X_SetResLabel:
0N/A case X_SetResUID:
0N/A case X_GetClientAttributes:
0N/A case X_GetClientLabel:
0N/A case X_GetPropAttributes:
0N/A case X_GetResAttributes:
0N/A case X_MakeTPWindow:
0N/A case X_MakeTrustedWindow:
0N/A case X_MakeUntrustedWindow:
0N/A case X_SetPolyInstInfo:
0N/A case X_SetPropLabel:
0N/A case X_SetPropUID:
0N/A case X_SetResLabel:
0N/A case X_SetResUID:
0N/A case X_GetClientAttributes:
0N/A case X_GetClientLabel:
0N/A case X_GetPropAttributes:
0N/A case X_GetResAttributes:
0N/A case X_MakeTPWindow:
0N/A case X_MakeTrustedWindow:
0N/A case X_MakeUntrustedWindow:
0N/A int ScreenNumber;
0N/A case STRIPEHEIGHT:
0N/A int reply_length;
0N/A int reply_length;
0N/A int reply_length;
311N/A if (!noPanoramiXExtension)
36N/A if (tsolMultiLevel) {
36N/A char *temp_inmsg;
36N/A int client_gidlen;
36N/A extern int getdomainname(char *, int);
36N/A if (system_audit_on &&
196N/A return (auth_token);
0N/A extern void HandleHotKey();
0N/A HandleHotKey();
0N/A return SecurityAllowOperation;
0N/A return SecurityIgnoreOperation;
0N/A return SecurityAllowOperation;
0N/A return SecurityIgnoreOperation;
0N/A return SecurityAllowOperation;
0N/A return SecurityIgnoreOperation;
0N/A return SecurityAllowOperation;
0N/A return SecurityAllowOperation;