XSELinux: Do a check for whether background "None" is allowed.
This commit is contained in:
		
							parent
							
								
									e323bb426c
								
							
						
					
					
						commit
						3bbd77ff98
					
				| 
						 | 
					@ -1026,6 +1026,13 @@ SELinuxResource(CallbackListPtr *pcbl, pointer unused, pointer calldata)
 | 
				
			||||||
    rc = SELinuxDoCheck(subj, obj, class, access_mode, &auditdata);
 | 
					    rc = SELinuxDoCheck(subj, obj, class, access_mode, &auditdata);
 | 
				
			||||||
    if (rc != Success)
 | 
					    if (rc != Success)
 | 
				
			||||||
	rec->status = rc;
 | 
						rec->status = rc;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    /* Perform the background none check on windows */
 | 
				
			||||||
 | 
					    if (access_mode & DixCreateAccess && rec->rtype == RT_WINDOW) {
 | 
				
			||||||
 | 
						rc = SELinuxDoCheck(subj, obj, class, DixBlendAccess, &auditdata);
 | 
				
			||||||
 | 
						if (rc != Success)
 | 
				
			||||||
 | 
						    ((WindowPtr)rec->res)->forcedBG = TRUE;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static void
 | 
					static void
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue