From d9704cc2205fb357cec78970b9a60a9c207369d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Mon, 18 May 2026 12:39:28 +0800 Subject: [PATCH] vboxusb: include upstream SPDX license stubs for embedded driver assets The VBoxUSB.sys / VBoxUSBMon.sys / .inf / .cat binaries copied from dorssel/usbipd-win Drivers/{x64,arm64}/ ship paired SPDX *.license files that record Oracle's GPL-3.0-only copyright. Carrying them next to the assets keeps the provenance discoverable. --- common/vboxusb/assets/amd64/VBoxUSB.cat.license | 3 +++ common/vboxusb/assets/amd64/VBoxUSB.inf.license | 3 +++ common/vboxusb/assets/amd64/VBoxUSB.sys.license | 3 +++ common/vboxusb/assets/amd64/VBoxUSBMon.sys.license | 3 +++ common/vboxusb/assets/arm64/VBoxUSB.cat.license | 3 +++ common/vboxusb/assets/arm64/VBoxUSB.inf.license | 3 +++ common/vboxusb/assets/arm64/VBoxUSB.sys.license | 3 +++ common/vboxusb/assets/arm64/VBoxUSBMon.sys.license | 3 +++ common/vboxusb/device_windows.go | 6 +++--- common/vboxusb/vboxusb.go | 12 ++++++------ 10 files changed, 33 insertions(+), 9 deletions(-) create mode 100644 common/vboxusb/assets/amd64/VBoxUSB.cat.license create mode 100644 common/vboxusb/assets/amd64/VBoxUSB.inf.license create mode 100644 common/vboxusb/assets/amd64/VBoxUSB.sys.license create mode 100644 common/vboxusb/assets/amd64/VBoxUSBMon.sys.license create mode 100644 common/vboxusb/assets/arm64/VBoxUSB.cat.license create mode 100644 common/vboxusb/assets/arm64/VBoxUSB.inf.license create mode 100644 common/vboxusb/assets/arm64/VBoxUSB.sys.license create mode 100644 common/vboxusb/assets/arm64/VBoxUSBMon.sys.license diff --git a/common/vboxusb/assets/amd64/VBoxUSB.cat.license b/common/vboxusb/assets/amd64/VBoxUSB.cat.license new file mode 100644 index 000000000..d91c23ad1 --- /dev/null +++ b/common/vboxusb/assets/amd64/VBoxUSB.cat.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Microsoft Corporation + +SPDX-License-Identifier: GPL-3.0-only diff --git a/common/vboxusb/assets/amd64/VBoxUSB.inf.license b/common/vboxusb/assets/amd64/VBoxUSB.inf.license new file mode 100644 index 000000000..4fb909335 --- /dev/null +++ b/common/vboxusb/assets/amd64/VBoxUSB.inf.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2011-2025 Oracle and/or its affiliates + +SPDX-License-Identifier: GPL-3.0-only diff --git a/common/vboxusb/assets/amd64/VBoxUSB.sys.license b/common/vboxusb/assets/amd64/VBoxUSB.sys.license new file mode 100644 index 000000000..22ff2d8b6 --- /dev/null +++ b/common/vboxusb/assets/amd64/VBoxUSB.sys.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2009-2026 Oracle and/or its affiliates + +SPDX-License-Identifier: GPL-3.0-only diff --git a/common/vboxusb/assets/amd64/VBoxUSBMon.sys.license b/common/vboxusb/assets/amd64/VBoxUSBMon.sys.license new file mode 100644 index 000000000..22ff2d8b6 --- /dev/null +++ b/common/vboxusb/assets/amd64/VBoxUSBMon.sys.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2009-2026 Oracle and/or its affiliates + +SPDX-License-Identifier: GPL-3.0-only diff --git a/common/vboxusb/assets/arm64/VBoxUSB.cat.license b/common/vboxusb/assets/arm64/VBoxUSB.cat.license new file mode 100644 index 000000000..d91c23ad1 --- /dev/null +++ b/common/vboxusb/assets/arm64/VBoxUSB.cat.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Microsoft Corporation + +SPDX-License-Identifier: GPL-3.0-only diff --git a/common/vboxusb/assets/arm64/VBoxUSB.inf.license b/common/vboxusb/assets/arm64/VBoxUSB.inf.license new file mode 100644 index 000000000..4fb909335 --- /dev/null +++ b/common/vboxusb/assets/arm64/VBoxUSB.inf.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2011-2025 Oracle and/or its affiliates + +SPDX-License-Identifier: GPL-3.0-only diff --git a/common/vboxusb/assets/arm64/VBoxUSB.sys.license b/common/vboxusb/assets/arm64/VBoxUSB.sys.license new file mode 100644 index 000000000..22ff2d8b6 --- /dev/null +++ b/common/vboxusb/assets/arm64/VBoxUSB.sys.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2009-2026 Oracle and/or its affiliates + +SPDX-License-Identifier: GPL-3.0-only diff --git a/common/vboxusb/assets/arm64/VBoxUSBMon.sys.license b/common/vboxusb/assets/arm64/VBoxUSBMon.sys.license new file mode 100644 index 000000000..22ff2d8b6 --- /dev/null +++ b/common/vboxusb/assets/arm64/VBoxUSBMon.sys.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2009-2026 Oracle and/or its affiliates + +SPDX-License-Identifier: GPL-3.0-only diff --git a/common/vboxusb/device_windows.go b/common/vboxusb/device_windows.go index d69091203..5aa9746d4 100644 --- a/common/vboxusb/device_windows.go +++ b/common/vboxusb/device_windows.go @@ -19,9 +19,9 @@ import ( // concurrent use on the same Device — the session layer serializes // per-endpoint via per-endpoint goroutines. type Device struct { - handle windows.Handle - event windows.Handle - closing sync.Once + handle windows.Handle + event windows.Handle + closing sync.Once closeErr error } diff --git a/common/vboxusb/vboxusb.go b/common/vboxusb/vboxusb.go index 77c319934..a373bd0eb 100644 --- a/common/vboxusb/vboxusb.go +++ b/common/vboxusb/vboxusb.go @@ -93,13 +93,13 @@ type GUID struct { // Method = METHOD_BUFFERED (0). const ( // Per-device VBoxUSB.sys (\\?\). - IOCTLSendURB uint32 = 0x0022_181C // function 0x607 + IOCTLSendURB uint32 = 0x0022_181C // function 0x607 IOCTLUSBSelectInterface uint32 = 0x0022_1824 // function 0x609 - IOCTLUSBSetConfig uint32 = 0x0022_1828 // function 0x60a - IOCTLUSBClaimDevice uint32 = 0x0022_182C // function 0x60b - IOCTLUSBClearEndpoint uint32 = 0x0022_1838 // function 0x60e - IOCTLGetVersion uint32 = 0x0022_183C // function 0x60f - IOCTLUSBAbortEndpoint uint32 = 0x0022_1840 // function 0x610 + IOCTLUSBSetConfig uint32 = 0x0022_1828 // function 0x60a + IOCTLUSBClaimDevice uint32 = 0x0022_182C // function 0x60b + IOCTLUSBClearEndpoint uint32 = 0x0022_1838 // function 0x60e + IOCTLGetVersion uint32 = 0x0022_183C // function 0x60f + IOCTLUSBAbortEndpoint uint32 = 0x0022_1840 // function 0x610 // VBoxUSBMon (\\.\VBoxUSBMon). Note GET_VERSION shares the numeric // code with VBoxUSB's USB_ABORT_ENDPOINT — different handles.