From 761f0a95b2ebbbc3dec1d7e730972539bb6e140f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hubert=20Figui=C3=A8re?= Date: Fri, 13 Sep 2024 19:11:45 -0400 Subject: [PATCH] usb: If not sandboxed, assume all devices MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Hubert Figuière --- src/xdp-app-info.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/xdp-app-info.c b/src/xdp-app-info.c index 810145c85..85f8a8f12 100644 --- a/src/xdp-app-info.c +++ b/src/xdp-app-info.c @@ -1886,6 +1886,12 @@ xdp_app_info_get_usb_queries (XdpAppInfo *app_info) break; case XDP_APP_INFO_KIND_HOST: + { + g_autoptr(XdpUsbQuery) query = + xdp_usb_query_from_string (XDP_USB_QUERY_TYPE_ALLOW, "all"); + if (query) + g_ptr_array_add (usb_queries, g_steal_pointer (&query)); + } break; default: