mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	access: debug access control some more
This commit is contained in:
		
							parent
							
								
									58cc4848f2
								
							
						
					
					
						commit
						0ef41252bd
					
				
					 2 changed files with 4 additions and 2 deletions
				
			
		| 
						 | 
					@ -74,6 +74,8 @@ static void object_update(void *data)
 | 
				
			||||||
			return;
 | 
								return;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		/* limited access for now */
 | 
							/* limited access for now */
 | 
				
			||||||
 | 
							pw_log_info(NAME" %p: flatpak client %d granted RX permissions"
 | 
				
			||||||
 | 
									, impl, client->id);
 | 
				
			||||||
		permissions[0] = PW_PERMISSION_INIT(PW_ID_ANY, PW_PERM_R | PW_PERM_X);
 | 
							permissions[0] = PW_PERMISSION_INIT(PW_ID_ANY, PW_PERM_R | PW_PERM_X);
 | 
				
			||||||
		pw_client_update_permissions(client->obj->obj.proxy,
 | 
							pw_client_update_permissions(client->obj->obj.proxy,
 | 
				
			||||||
				1, permissions);
 | 
									1, permissions);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -201,7 +201,7 @@ context_check_access(void *data, struct pw_impl_client *client)
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		else if (res > 0) {
 | 
							else if (res > 0) {
 | 
				
			||||||
			pw_log_debug(NAME" %p: sandboxed client %p added", impl, client);
 | 
								pw_log_debug(NAME" %p: flatpak client %p added", impl, client);
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		access = "flatpak";
 | 
							access = "flatpak";
 | 
				
			||||||
		goto wait_permissions;
 | 
							goto wait_permissions;
 | 
				
			||||||
| 
						 | 
					@ -221,7 +221,7 @@ granted:
 | 
				
			||||||
	return;
 | 
						return;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
wait_permissions:
 | 
					wait_permissions:
 | 
				
			||||||
	pw_log_debug(NAME " %p: client %p wait for '%s' permissions",
 | 
						pw_log_info(NAME " %p: client %p wait for '%s' permissions",
 | 
				
			||||||
			impl, client, access);
 | 
								impl, client, access);
 | 
				
			||||||
	items[0] = SPA_DICT_ITEM_INIT(PW_KEY_ACCESS, access);
 | 
						items[0] = SPA_DICT_ITEM_INIT(PW_KEY_ACCESS, access);
 | 
				
			||||||
	pw_impl_client_update_properties(client, &SPA_DICT_INIT(items, 1));
 | 
						pw_impl_client_update_properties(client, &SPA_DICT_INIT(items, 1));
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue