Skip to contentSkip to conversation

bpf: clarify libbpf skeleton header licensing

PATCH In review Martin Kelly 2 participants 3 messages Apr 15, 2024 – Apr 16, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bpf: clarify libbpf skeleton header licensing

Add an explicit statement clarifying that generated BPF code bundled inside a libbpf skeleton header may have a license distinct from the skeleton header (in other words, the bundled code does not alter the skeleton header license). This is a follow-up from a previous thread discussing licensing terms:
https://lore.kernel.org/bpf/[email protected]/#r

---
 Documentation/bpf/bpf_licensing.rst | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
Documentation/bpf/bpf_licensing.rst +5 -1
index b19c433f41d2..05bc1b845e64 100644
@@ -89,4 +89,8 @@ Packaging BPF programs with user space applications
 
 Generally, proprietary-licensed applications and GPL licensed BPF programs
 written for the Linux kernel in the same package can co-exist because they are
-separate executable processes. This applies to both cBPF and eBPF programs.
+separate executable processes. In particular, BPF code bundled inside a libbpf
+skeleton header may have a different license than that of its surrounding
+skeleton. In other words, the license of the bundled BPF code does not alter the
+license of the skeleton header nor of a program including the header. This
+paragraph applies to both cBPF and eBPF programs.
Signature · 1 line
2.34.1
#1 lore raw
Quoted 18 lines · Martin Kelly

Add an explicit statement clarifying that generated BPF code bundled inside a libbpf skeleton header may have a license distinct from the skeleton header (in other words, the bundled code does not alter the skeleton header license). This is a follow-up from a previous thread discussing licensing terms:
https://lore.kernel.org/bpf/[email protected]/#r

---
 Documentation/bpf/bpf_licensing.rst | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
Documentation/bpf/bpf_licensing.rst +0 -0
index b19c433f41d2..05bc1b845e64 100644

Documentation/bpf/bpf_licensing.rst Packaging BPF programs with user space applications · line 96

Quoted 9 lines
Documentation/bpf/bpf_licensing.rst +5 -1
@@ -89,4 +89,8 @@ Packaging BPF programs with user space applications
 
 Generally, proprietary-licensed applications and GPL licensed BPF programs
 written for the Linux kernel in the same package can co-exist because they are
-separate executable processes. This applies to both cBPF and eBPF programs.
+separate executable processes. In particular, BPF code bundled inside a libbpf
+skeleton header may have a different license than that of its surrounding
+skeleton. In other words, the license of the bundled BPF code does not alter the
+license of the skeleton header nor of a program including the header. This
+paragraph applies to both cBPF and eBPF programs.

The doc is clear enough. This is unnecessary.
Otherwise we'll start listing every project that bundles bpf prog in some form.

#2 lore raw
Quoted 3 lines · Alexei Starovoitov

The doc is clear enough. This is unnecessary.
Otherwise we'll start listing every project that bundles bpf prog in some form.

I figured that with licensing, being explicit never hurts, but I take your point and am happy to drop the patch.