Commit 1bc38b8f authored by Alexei Starovoitov's avatar Alexei Starovoitov Committed by Daniel Borkmann
Browse files

libbpf: relicense libbpf as LGPL-2.1 OR BSD-2-Clause



libbpf is maturing as a library and gaining features that no other bpf libraries support
(BPF Type Format, bpf to bpf calls, etc)
Many Apache2 licensed projects (like bcc, bpftrace, gobpf, cilium, etc)
would like to use libbpf, but cannot do this yet, since Apache Foundation explicitly
states that LGPL is incompatible with Apache2.
Hence let's relicense libbpf as dual license LGPL-2.1 or BSD-2-Clause,
since BSD-2 is compatible with Apache2.
Dual LGPL or Apache2 is invalid combination.
Fix license mistake in Makefile as well.

Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
Acked-by: default avatarAndrey Ignatov <rdna@fb.com>
Acked-by: default avatarArnaldo Carvalho de Melo <acme@kernel.org>
Acked-by: default avatarBjörn Töpel <bjorn.topel@intel.com>
Acked-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
Acked-by: default avatarDavid Beckett <david.beckett@netronome.com>
Acked-by: default avatarJakub Kicinski <jakub.kicinski@netronome.com>
Acked-by: default avatarJoe Stringer <joe@ovn.org>
Acked-by: default avatarJohn Fastabend <john.fastabend@gmail.com>
Acked-by: default avatarMartin KaFai Lau <kafai@fb.com>
Acked-by: default avatarQuentin Monnet <quentin.monnet@netronome.com>
Acked-by: default avatarThomas Graf <tgraf@suug.ch>
Acked-by: default avatarRoman Gushchin <guro@fb.com>
Acked-by: default avatarWang Nan <wangnan0@huawei.com>
Acked-by: default avatarYonghong Song <yhs@fb.com>
Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
parent 541d7fdd
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0
# SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)
# Most of this file is copied from tools/lib/traceevent/Makefile
# Most of this file is copied from tools/lib/traceevent/Makefile


BPF_VERSION = 0
BPF_VERSION = 0
+1 −1
Original line number Original line Diff line number Diff line
// SPDX-License-Identifier: LGPL-2.1
// SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)


/*
/*
 * common eBPF ELF operations.
 * common eBPF ELF operations.
+1 −1
Original line number Original line Diff line number Diff line
/* SPDX-License-Identifier: LGPL-2.1 */
/* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */


/*
/*
 * common eBPF ELF operations.
 * common eBPF ELF operations.
+1 −1
Original line number Original line Diff line number Diff line
// SPDX-License-Identifier: LGPL-2.1
// SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)
/* Copyright (c) 2018 Facebook */
/* Copyright (c) 2018 Facebook */


#include <stdlib.h>
#include <stdlib.h>
+1 −1
Original line number Original line Diff line number Diff line
/* SPDX-License-Identifier: LGPL-2.1 */
/* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */
/* Copyright (c) 2018 Facebook */
/* Copyright (c) 2018 Facebook */


#ifndef __LIBBPF_BTF_H
#ifndef __LIBBPF_BTF_H
Loading