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;
 | 
					    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
 | 
					static int
 | 
				
			||||||
ProcSELinuxDispatch(ClientPtr client)
 | 
					ProcSELinuxDispatch(ClientPtr client)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
| 
						 | 
					@ -1313,6 +1331,12 @@ ProcSELinuxDispatch(ClientPtr client)
 | 
				
			||||||
	return ProcSELinuxGetWindowCreateContext(client);
 | 
						return ProcSELinuxGetWindowCreateContext(client);
 | 
				
			||||||
    case X_SELinuxGetWindowContext:
 | 
					    case X_SELinuxGetWindowContext:
 | 
				
			||||||
	return ProcSELinuxGetWindowContext(client);
 | 
						return ProcSELinuxGetWindowContext(client);
 | 
				
			||||||
 | 
					    case X_SELinuxSetSelectionCreateContext:
 | 
				
			||||||
 | 
						return ProcSELinuxSetSelectionCreateContext(client);
 | 
				
			||||||
 | 
					    case X_SELinuxGetSelectionCreateContext:
 | 
				
			||||||
 | 
						return ProcSELinuxGetSelectionCreateContext(client);
 | 
				
			||||||
 | 
					    case X_SELinuxGetSelectionContext:
 | 
				
			||||||
 | 
						return ProcSELinuxGetSelectionContext(client);
 | 
				
			||||||
    default:
 | 
					    default:
 | 
				
			||||||
	return BadRequest;
 | 
						return BadRequest;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
| 
						 | 
					@ -1420,6 +1444,28 @@ SProcSELinuxGetWindowContext(ClientPtr client)
 | 
				
			||||||
    return ProcSELinuxGetWindowContext(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
 | 
					static int
 | 
				
			||||||
SProcSELinuxDispatch(ClientPtr client)
 | 
					SProcSELinuxDispatch(ClientPtr client)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
| 
						 | 
					@ -1455,6 +1501,12 @@ SProcSELinuxDispatch(ClientPtr client)
 | 
				
			||||||
	return ProcSELinuxGetWindowCreateContext(client);
 | 
						return ProcSELinuxGetWindowCreateContext(client);
 | 
				
			||||||
    case X_SELinuxGetWindowContext:
 | 
					    case X_SELinuxGetWindowContext:
 | 
				
			||||||
	return SProcSELinuxGetWindowContext(client);
 | 
						return SProcSELinuxGetWindowContext(client);
 | 
				
			||||||
 | 
					    case X_SELinuxSetSelectionCreateContext:
 | 
				
			||||||
 | 
						return SProcSELinuxSetSelectionCreateContext(client);
 | 
				
			||||||
 | 
					    case X_SELinuxGetSelectionCreateContext:
 | 
				
			||||||
 | 
						return ProcSELinuxGetSelectionCreateContext(client);
 | 
				
			||||||
 | 
					    case X_SELinuxGetSelectionContext:
 | 
				
			||||||
 | 
						return SProcSELinuxGetSelectionContext(client);
 | 
				
			||||||
    default:
 | 
					    default:
 | 
				
			||||||
	return BadRequest;
 | 
						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_SELinuxSetWindowCreateContext		10
 | 
				
			||||||
#define X_SELinuxGetWindowCreateContext		11
 | 
					#define X_SELinuxGetWindowCreateContext		11
 | 
				
			||||||
#define X_SELinuxGetWindowContext		12
 | 
					#define X_SELinuxGetWindowContext		12
 | 
				
			||||||
 | 
					#define X_SELinuxSetSelectionCreateContext	13
 | 
				
			||||||
 | 
					#define X_SELinuxGetSelectionCreateContext	14
 | 
				
			||||||
 | 
					#define X_SELinuxGetSelectionContext		15
 | 
				
			||||||
 | 
					
 | 
				
			||||||
typedef struct {
 | 
					typedef struct {
 | 
				
			||||||
    CARD8   reqType;
 | 
					    CARD8   reqType;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue