xace: add creation/labeling hook to CreateRootWindow().
This commit is contained in:
		
							parent
							
								
									773f6491c1
								
							
						
					
					
						commit
						e3a8cbe523
					
				|  | @ -434,6 +434,12 @@ CreateRootWindow(ScreenPtr pScreen) | |||
|     pWin->border.pixel = pScreen->blackPixel; | ||||
|     pWin->borderWidth = 0; | ||||
| 
 | ||||
|     /*  security creation/labeling check
 | ||||
|      */ | ||||
|     if (XaceHook(XACE_RESOURCE_ACCESS, serverClient, pWin->drawable.id, | ||||
| 		 RT_WINDOW, pWin, RT_NONE, NULL, DixCreateAccess)) | ||||
| 	return FALSE; | ||||
| 
 | ||||
|     if (!AddResource(pWin->drawable.id, RT_WINDOW, (pointer)pWin)) | ||||
| 	return FALSE; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue