mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	permissions: check permissions more
Pass client to some core functions to make it possible to check permissions when iterating globals. Check permissions of factory before using it. Check permissions in link factory, only allow linking of nodes we can see. Check permissions in the autolink module, only try to link to nodes we can see. Make client permissions update behave like an atomic update of an unordered set of permissions, which is perhaps a bit more intuitive.
This commit is contained in:
		
							parent
							
								
									1804e47a91
								
							
						
					
					
						commit
						ab099d09dd
					
				
					 11 changed files with 79 additions and 38 deletions
				
			
		| 
						 | 
				
			
			@ -1001,7 +1001,7 @@ static bool do_export_node(struct data *data, const char *cmd, char *args, char
 | 
			
		|||
			goto no_remote;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	global = pw_core_find_global(data->core, atoi(a[0]));
 | 
			
		||||
	global = pw_core_find_global(data->core, NULL, atoi(a[0]));
 | 
			
		||||
	if (global == NULL) {
 | 
			
		||||
		asprintf(error, "object %d does not exist", atoi(a[0]));
 | 
			
		||||
		return false;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue