-
Notifications
You must be signed in to change notification settings - Fork 6
License project under terms of GPLv2 #10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
License the project under the terms of the GPLv2 license. Nobody seems to know what license the generated vmlinux.h files carry, so pessimistically assume they are a derivative of the kernel and license the project accordingly. Closes: libbpf#9 Signed-off-by: Daniel Müller <[email protected]>
e745ccd to
dc2ffac
Compare
anakryiko
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bpftool, libbpf and generally all BPF ecosystem is dual licensed as
SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Let's do that here as well. There is no reason to deviate.
|
This is wrong. vmlinux.h is auto generated file. You cannot add a license to it. |
The kernel is license under GPLv2 + syscall exception. These header files contain internal kernel types that are, to the best of my knowledge, not covered by the exception. As such it is an entirely reasonable assumption that, because of GPLv2's nature, these files should be licensed the same way. We cannot just say willy nilly that this isn't the case without a good reason -- that's not how the GPL works. I haven't seen any such reason.
Just because something is auto generated that doesn't make it unlicensable... |
it's not reasonable at all. BTF is equivalent to dwarf. vmlinux.h is no different than llvm-dwarfdump vmlinux. You cannot slap a license on top of a dump. |
|
@danielocfb tbh, I assumed you are adding license for the sake of licensing scripts under As for vmlinux.h, I agree with @4ast, we can't just license text dump of some tool. DWARF/BTF and derivative dumps from them cannot be licensed. Just like objdump's output of vmlinux, and many other things like that. |
Please provide a citation for this claim. By that argument, are you also saying that one can't license a binary produced by a compiler or where is the line? I think this is factually wrong. You can absolutely do that and it is being done with every closed source binary. |
|
First link on google: |
In general "citation" refers to something that can actually be followed to and verified. So...a link perhaps? |
License the project under the terms of the GPLv2 license. Nobody knows what license the generated vmlinux.h files carry, so pessimistically assume they are a derivative of the kernel and license the project accordingly.
Closes: #9