opnsense-deps/LICENSING.md
Jeremy Karst 98356a2663 Board drivers: audit fixes V6, V8, V9, V11; relabel ported drivers GPL-2.0
Security fixes from the audit:
- V8 caam: the HMAC raw key (up to 128 bytes) was copied into a buffer
  of the split key's size (32 bytes for MD5, 48 for SHA-1), reachable
  through /dev/crypto. The buffer now fits both. caam_dma_free() zeroes
  every buffer itself, which also fixes the QI path clearing twice the
  split key buffer's size at each session teardown.
- V6 mwifiex: the uap_passphrase sysctl, readable by every local user,
  is write-only; mwifiex_uap says to keep the passphrase in a 0600
  /etc/rc.conf.d/mwifiex_uap.
- V9 dpaa_wifi: hardware frame lengths were copied into a 4 KB cluster
  unchecked, and scatter/gather frames read as one buffer. One helper
  now takes only contiguous frames within the buffer, at any length.
- V11: cdx frees IPsec keys and shared descriptors with zfree(); fmc's
  state file moves from /tmp (symlink attack by any local user) to
  /var/run.
- The firmware object pcieuart9098_combo_v1.bin.fwo is a build output
  and no longer tracked.

caam, ina2xx and lp5812 were ported from Linux and relabelled BSD-2 by
the vendor (8f9b3bf, 84e318c, ac81eea). They are GPL-2.0-only again,
with the Linux sources' copyright holders; LICENSING.md lists them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 21:30:15 -05:00

3.7 KiB

Licensing

This repository contains components under multiple open-source licenses. Each source file carries an SPDX-License-Identifier header which is the authoritative license for that file. Full license texts are in the LICENSES/ directory.

BSD-2-Clause — FreeBSD Drivers

These drivers were written for FreeBSD from hardware datasheets and vendor reference manuals.

Component Path Notes
EMC2302 fan controller drivers/emc2302/ Microchip EMC2301-2305
TMP431 temp sensor drivers/tmp431/ TI TMP431 dual-channel
PCF2131 RTC drivers/pcf2131/ NXP PCF2131 real-time clock
pf_notify fastpath/pf_notify/ PF state change notifications (no Linux counterpart)

GPL-2.0-only — Ported from Linux Drivers

These drivers were ported from their Linux counterparts. The vendor had relabelled them BSD-2-Clause after renaming constants and removing the "ported from Linux" notes (commits 8f9b3bf, 84e318c, ac81eea); they carry their Linux sources' license and copyright holders again. The CAAM sources are GPL-2.0+ except desc.h, regs.h, key_gen.c and qi.c (GPL-2.0), which every CAAM file uses, so the driver is GPL-2.0-only.

Component Path Linux source
CAAM crypto drivers/caam/ drivers/crypto/caam (Freescale Semiconductor, NXP)
INA2xx power monitor drivers/ina2xx/ drivers/hwmon/ina2xx.c (Lothar Felten and contributors)
LP5812 LED controller drivers/lp5812/ TI's LP5812 driver; lp5812.h is TI's header (Texas Instruments)

GPL-2.0+ — NXP Fastpath Stack

The DPAA1 flow offload stack derives from NXP's ASK (Application Solution Kit) SDK, which is GPL-2.0+ licensed. Some components compile unmodified NXP vendor source from fastpath/vendor/; others are FreeBSD rewrites that include GPL headers (fpp.h, list.h) or are derived from GPL originals. The entire stack is licensed as GPL-2.0+ with original copyright holders (Mindspeed Technologies, Freescale Semiconductor, NXP) retained.

Component Path Description
CDX fastpath/cdx/ Flow offload kernel module (compiles NXP vendor source + FreeBSD ports)
CMM fastpath/cmm/ Connection manager daemon (reimplemented for FreeBSD, includes GPL headers)
cmmctl fastpath/cmmctl/ CMM command-line control tool
auto_bridge fastpath/auto_bridge/ L2 flow detection kernel module
FCI fastpath/fci/ Fast control interface kernel module
fci_lib fastpath/fci_lib/ FCI userspace library
dpa_app fastpath/dpa_app/ DPA initialization tool (compiles NXP vendor source)
include/ fastpath/include/ Shared headers (mix of GPL NXP originals + BSD compat shims)
vendor/ fastpath/vendor/ Unmodified NXP ASK source (GPL-2.0+)

GPL-2.0 — NXP WiFi Driver

The mwifiex WiFi driver links NXP's GPL-2.0 mlan core library (~127K lines, fetched into _vendor/ at build time) with a FreeBSD OS abstraction layer (~3K lines). The combined module is GPL-2.0.

Component Path Description
mwifiex drivers/mwifiex/ NXP 88W9098 PCIe WiFi (mlan core + FreeBSD moal shim)

Permissive Third-Party — NXP Libraries

These NXP-provided libraries carry permissive licenses and are used unmodified.

Component Path License Description
fmlib fastpath/fmlib/ BSD-3-Clause FMan userspace library
fmc fastpath/fmc/ MIT FMan Configuration Compiler

Compliance

All source code is publicly available in this repository. GPL compliance is satisfied through source availability alongside any binary distribution.

Per-file SPDX-License-Identifier headers are the authoritative license for each file. When in doubt, check the file header.