Drop SEC("license") explanation from README license section - #2
Merged
Conversation
The License section now reads "GPL-2.0." with no further detail.
The removed sentence described the BPF program's ELF license section as
prose. It was a source of confusion: it reads like display text, but
char LICENSE[] SEC("license") = "GPL" is what the kernel checks at load
time to gate GPL-only helpers. The declaration itself is unchanged.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The License section now reads simply
GPL-2.0.What changed
One sentence removed from
README.md. Nothing else in the repo is touched.Why
The removed sentence explained the BPF program's ELF license declaration as README prose. Presented that way it reads like display text, which invited the reading that it could be reworded or deleted. It cannot:
char LICENSE[] SEC("license") = "GPL"inagent/src/bpf/httptop.bpf.cis the token the kernel reads at program load to gate GPL-only helpers (bpf_probe_read_kernel,bpf_perf_event_output, and others httpwatch uses). Change or remove it and the program fails verification and httpwatch stops working.The declaration itself is unchanged. This PR only removes the prose describing it.
Still open
There is no repo-level
LICENSEfile, soGPL-2.0in the README remains a stated license that has not been verified for the vendored code underagent/. Removing the parenthetical does not close that gap, it just stops surfacing it on the page. The real fix is to trace the upstream provenance of the vendored program and add a realLICENSEfile, or aNOTICErecording the source and that the license is unverified. Worth tracking separately.Also note
agent/README.md:253still carries similar wording. Left untouched, since the request named the top-level README.