xselinux: Stub out selection protocol requests.
This commit is contained in:
		
							parent
							
								
									4632ea2258
								
							
						
					
					
						commit
						3f0681fb0b
					
				| 
						 | 
				
			
			@ -1282,6 +1282,24 @@ ProcSELinuxGetWindowContext(ClientPtr client)
 | 
			
		|||
    return client->noClientException;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static int
 | 
			
		||||
ProcSELinuxSetSelectionCreateContext(ClientPtr client)
 | 
			
		||||
{
 | 
			
		||||
    return Success;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static int
 | 
			
		||||
ProcSELinuxGetSelectionCreateContext(ClientPtr client)
 | 
			
		||||
{
 | 
			
		||||
    return Success;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static int
 | 
			
		||||
ProcSELinuxGetSelectionContext(ClientPtr client)
 | 
			
		||||
{
 | 
			
		||||
    return Success;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static int
 | 
			
		||||
ProcSELinuxDispatch(ClientPtr client)
 | 
			
		||||
{
 | 
			
		||||
| 
						 | 
				
			
			@ -1313,6 +1331,12 @@ ProcSELinuxDispatch(ClientPtr client)
 | 
			
		|||
	return ProcSELinuxGetWindowCreateContext(client);
 | 
			
		||||
    case X_SELinuxGetWindowContext:
 | 
			
		||||
	return ProcSELinuxGetWindowContext(client);
 | 
			
		||||
    case X_SELinuxSetSelectionCreateContext:
 | 
			
		||||
	return ProcSELinuxSetSelectionCreateContext(client);
 | 
			
		||||
    case X_SELinuxGetSelectionCreateContext:
 | 
			
		||||
	return ProcSELinuxGetSelectionCreateContext(client);
 | 
			
		||||
    case X_SELinuxGetSelectionContext:
 | 
			
		||||
	return ProcSELinuxGetSelectionContext(client);
 | 
			
		||||
    default:
 | 
			
		||||
	return BadRequest;
 | 
			
		||||
    }
 | 
			
		||||
| 
						 | 
				
			
			@ -1420,6 +1444,28 @@ SProcSELinuxGetWindowContext(ClientPtr client)
 | 
			
		|||
    return ProcSELinuxGetWindowContext(client);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static int
 | 
			
		||||
SProcSELinuxSetSelectionCreateContext(ClientPtr client)
 | 
			
		||||
{
 | 
			
		||||
    REQUEST(SELinuxSetCreateContextReq);
 | 
			
		||||
    int n;
 | 
			
		||||
 | 
			
		||||
    REQUEST_AT_LEAST_SIZE(SELinuxSetCreateContextReq);
 | 
			
		||||
    swaps(&stuff->context_len, n);
 | 
			
		||||
    return ProcSELinuxSetSelectionCreateContext(client);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static int
 | 
			
		||||
SProcSELinuxGetSelectionContext(ClientPtr client)
 | 
			
		||||
{
 | 
			
		||||
    REQUEST(SELinuxGetContextReq);
 | 
			
		||||
    int n;
 | 
			
		||||
 | 
			
		||||
    REQUEST_SIZE_MATCH(SELinuxGetContextReq);
 | 
			
		||||
    swapl(&stuff->id, n);
 | 
			
		||||
    return ProcSELinuxGetSelectionContext(client);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static int
 | 
			
		||||
SProcSELinuxDispatch(ClientPtr client)
 | 
			
		||||
{
 | 
			
		||||
| 
						 | 
				
			
			@ -1455,6 +1501,12 @@ SProcSELinuxDispatch(ClientPtr client)
 | 
			
		|||
	return ProcSELinuxGetWindowCreateContext(client);
 | 
			
		||||
    case X_SELinuxGetWindowContext:
 | 
			
		||||
	return SProcSELinuxGetWindowContext(client);
 | 
			
		||||
    case X_SELinuxSetSelectionCreateContext:
 | 
			
		||||
	return SProcSELinuxSetSelectionCreateContext(client);
 | 
			
		||||
    case X_SELinuxGetSelectionCreateContext:
 | 
			
		||||
	return ProcSELinuxGetSelectionCreateContext(client);
 | 
			
		||||
    case X_SELinuxGetSelectionContext:
 | 
			
		||||
	return SProcSELinuxGetSelectionContext(client);
 | 
			
		||||
    default:
 | 
			
		||||
	return BadRequest;
 | 
			
		||||
    }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -43,6 +43,9 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 | 
			
		|||
#define X_SELinuxSetWindowCreateContext		10
 | 
			
		||||
#define X_SELinuxGetWindowCreateContext		11
 | 
			
		||||
#define X_SELinuxGetWindowContext		12
 | 
			
		||||
#define X_SELinuxSetSelectionCreateContext	13
 | 
			
		||||
#define X_SELinuxGetSelectionCreateContext	14
 | 
			
		||||
#define X_SELinuxGetSelectionContext		15
 | 
			
		||||
 | 
			
		||||
typedef struct {
 | 
			
		||||
    CARD8   reqType;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue