Skip to content

Commit d75fe9c

Browse files
blucaborkmann
authored andcommitted
samples/bpf: Relicense bpf_insn.h as GPL-2.0-only OR BSD-2-Clause
libbpf and bpftool have been dual-licensed to facilitate inclusion in software that is not compatible with GPL2-only (ie: Apache2), but the samples are still GPL2-only. Given these files are samples, they get naturally copied around. For example, it is the case for samples/bpf/bpf_insn.h which was copied into the systemd tree: https://github.com/systemd/systemd/blob/main/src/shared/linux/bpf_insn.h Some more context on systemd's needs specifically: Most of systemd is (L)GPL2-or-later, which means there is no perceived incompatibility with Apache2 software and can thus be linked with OpenSSL 3.0. But given this GPL2-only header is included this is currently not possible. Dual-licensing this header solves this problem for us as we are scoping a move to OpenSSL 3.0, see: https://lists.freedesktop.org/archives/systemd-devel/2021-September/046882.html Dual-license this header as GPL-2.0-only OR BSD-2-Clause to follow the same licensing used by libbpf and bpftool: 1bc38b8 ("libbpf: relicense libbpf as LGPL-2.1 OR BSD-2-Clause") 907b223 ("tools: bpftool: dual license all files") Signed-off-by: Luca Boccassi <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Simon Horman <[email protected]> Acked-by: Daniel Mack <[email protected]> Acked-by: Josef Bacik <[email protected]> Acked-by: Joe Stringer <[email protected]> Acked-by: Chenbo Feng <[email protected]> Acked-by: Björn Töpel <[email protected]> Acked-by: Magnus Karlsson <[email protected]> Acked-by: Brendan Jackman <[email protected]> Acked-by: Daniel Borkmann <[email protected]> Acked-by: Alexei Starovoitov <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
1 parent 571fa24 commit d75fe9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/bpf/bpf_insn.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* SPDX-License-Identifier: GPL-2.0 */
1+
/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
22
/* eBPF instruction mini library */
33
#ifndef __BPF_INSN_H
44
#define __BPF_INSN_H

0 commit comments

Comments
 (0)