kmesh-net / kmesh

High Performance ServiceMesh Data Plane Based on Programmable Kernel
https://kmesh.net
Apache License 2.0
362 stars 46 forks source link

bpf: Dual-license the code as GPL-2.0 OR BSD-2-Clause #410

Closed LiZhenCheng9527 closed 4 weeks ago

LiZhenCheng9527 commented 4 weeks ago

CNCF made the request that the eBPF datapath code under bpf/ be dual-licensed. The motivation for this is to be compliant with the CNCF IP policy.

The selected licenses for the code are the GPL 2.0 and the 2-Clause BSD: GPL-2.0-only OR BSD-2-Clause. The 2-Clause BSD was selected because:

It is one of the approved licenses for the CNCF allowlist license policy. It would help if we needed to potentially share code with libbpf in the future (libbpf is LGPL-2.1 OR BSD-2-Clause). "Dual BSD/GPL" has the additional advantage of being a valid license string in the eyes of the Linux kernel verifier. This decision was submitted for a vote to the Kmesh Committers, and the result was in favour of the new licenses. This PR implements the change.

Related issue: #366

[Status] We now have the approval of most authors, either as reviews on this PR, or by private channels such as email. Please refer to the description of the first commit for details.

/cc @nlgwcy @hzxuzhonghu @kwb0523 @lec-bit @bitcoffeeiux @LemmyHuang @weli-l @bfforever @supercharge-xsy

kmesh-bot commented 4 weeks ago

@LiZhenCheng9527: GitHub didn't allow me to request PR reviews from the following users: LemmyHuang.

Note that only kmesh-net members and repo collaborators can review this PR, and authors cannot review their own PRs.

In response to [this](https://github.com/kmesh-net/kmesh/pull/410): >CNCF made the request that the eBPF datapath code under bpf/ be dual-licensed. The motivation for this is to be compliant with the [CNCF IP policy](https://github.com/cncf/foundation/blob/main/charter.md#11-ip-policy). > >The selected licenses for the code are the [GPL 2.0](https://spdx.org/licenses/GPL-2.0-only.html) and the [2-Clause BSD](https://spdx.org/licenses/BSD-2-Clause.html): GPL-2.0-only OR BSD-2-Clause. The 2-Clause BSD was selected because: > >It is one of the [approved licenses for the CNCF allowlist license policy](https://github.com/cncf/foundation/blob/main/allowed-third-party-license-policy.md). >It would help if we needed to potentially share code with libbpf in the future (libbpf is LGPL-2.1 OR BSD-2-Clause). >"Dual BSD/GPL" has the additional advantage of being [a valid license string in the eyes of the Linux kernel verifier](https://elixir.bootlin.com/linux/v5.16/source/include/linux/license.h). >This decision was submitted for a vote to the Kmesh Committers, and the result was in favour of the new licenses. This PR implements the change. > >Related issue: #366 > >[Status] We now have the approval of most authors, either as reviews on this PR, or by private channels such as email. Please refer to the description of the first commit for details. > >/cc @nlgwcy @hzxuzhonghu @kwb0523 @lec-bit @bitcoffeeiux @LemmyHuang @weli-l @bfforever @supercharge-xsy > Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.
LiZhenCheng9527 commented 4 weeks ago

/cc @LemmyHuang

kmesh-bot commented 4 weeks ago

@LiZhenCheng9527: GitHub didn't allow me to request PR reviews from the following users: LemmyHuang.

Note that only kmesh-net members and repo collaborators can review this PR, and authors cannot review their own PRs.

In response to [this](https://github.com/kmesh-net/kmesh/pull/410#issuecomment-2144372401): >/cc @LemmyHuang Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.
codecov-commenter commented 4 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Flag Coverage Δ
unittests 31.10% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

hzxuzhonghu commented 4 weeks ago

/approve

kmesh-bot commented 4 weeks ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hzxuzhonghu

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files: - ~~[OWNERS](https://github.com/kmesh-net/kmesh/blob/main/OWNERS)~~ [hzxuzhonghu] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment