tsolpolicy.c revision 864
486N/A#pragma ident "@(#)tsolpolicy.c 1.30 09/12/17 SMI"
486N/A#ifdef HAVE_DIX_CONFIG_H
486N/A#include <dix-config.h>
493N/A#define NEED_REPLIES
486N/A#define NEED_EVENTS
486N/A#include "auditwrite.h"
493N/A#include "scrnintstr.h"
493N/A#include "regionstr.h"
493N/A#include "validate.h"
486N/A#include "windowstr.h"
486N/A#include "propertyst.h"
486N/A#include "inputstr.h"
493N/A#include "resource.h"
486N/A#include "colormapst.h"
486N/A#include "cursorstr.h"
486N/A#include "dixstruct.h"
#include "selection.h"
#include "gcstruct.h"
#include "servermd.h"
#include <syslog.h>
#include "extnsionst.h"
#include "registry.h"
#include "xace.h"
#include "xacestr.h"
#ifdef PANORAMIX
#include "../Xext/panoramiXsrv.h"
#include "tsol.h"
#include "tsolinfo.h"
#include "tsolpolicy.h"
#ifndef NO_TSOL_DEBUG_MESSAGES
extern int tsol_mac_enabled;
return TRUE;
return FALSE;
goto bad;
goto bad;
goto bad;
goto bad;
goto bad;
return Success;
bad:
return BadAccess;
#ifndef NO_TSOL_DEBUG_MESSAGES
return (NULL);
return slstring;
static priv_set_t *
return pset;
init_win_privsets(void)
free_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;