tsolpolicy.c revision 919
824N/A#ifdef HAVE_DIX_CONFIG_H
824N/A#include <dix-config.h>
824N/A#define NEED_REPLIES
824N/A#define NEED_EVENTS
824N/A#include "auditwrite.h"
824N/A#include "scrnintstr.h"
824N/A#include "regionstr.h"
824N/A#include "validate.h"
824N/A#include "windowstr.h"
824N/A#include "propertyst.h"
824N/A#include "inputstr.h"
824N/A#include "resource.h"
824N/A#include "colormapst.h"
824N/A#include "cursorstr.h"
824N/A#include "dixstruct.h"
824N/A#include "selection.h"
824N/A#include "gcstruct.h"
824N/A#include "servermd.h"
824N/A#include "extnsionst.h"
824N/A#include "registry.h"
824N/A#include "../Xext/panoramiXsrv.h"
824N/A#include "tsolinfo.h"
824N/A#include "tsolpolicy.h"
824N/A#ifndef NO_TSOL_DEBUG_MESSAGES
824N/Aextern int tsol_mac_enabled;
824N/A#ifndef NO_TSOL_DEBUG_MESSAGES
824N/Astatic priv_set_t *
824N/Ainit_win_privsets(void)
824N/Afree_win_privsets(void)
int obj_code;
int status;
int err_code;
int msgType;
int msgVerb;
int reqtype;
switch (rtype) {
case RT_WINDOW:
case RT_PIXMAP:
switch (reqtype) {
case X_GetImage:
case X_CopyArea:
case X_CopyPlane:
case X_ClearArea:
case X_GrabPointer:
case X_UngrabPointer:
case X_GrabKeyboard:
case X_UngrabKeyboard:
case X_GrabKey:
case X_UngrabKey:
case X_GrabButton:
case X_UngrabButton:
case X_ChangeSaveSet:
if (priv_win_config ||
#ifndef NO_TSOL_DEBUG_MESSAGES
int object_code;
int err_code;
int status;
int msgType;
int msgVerb;
int reqtype;
switch (rtype) {
case RT_FONT:
case RT_GC:
case RT_CURSOR:
case RT_COLORMAP:
#ifndef NO_TSOL_DEBUG_MESSAGES
int object_code = 0;
int err_code;
int reqtype;
switch (reqtype) {
case X_SetFontPath:
if (priv_win_fontpath ||
case X_ChangeHosts:
case X_SetAccessControl:
if (priv_win_config ||
#ifndef NO_TSOL_DEBUG_MESSAGES
int object_code = 0;
int err_code;
int msgType;
int msgVerb;
int reqtype;
if (priv_win_config ||
#ifndef NO_TSOL_DEBUG_MESSAGES
int reqtype;
#ifndef NO_TSOL_DEBUG_MESSAGES
int rc;
return tsolres;