From 98de84265d9920873628b8a87425a898d3d50792 Mon Sep 17 00:00:00 2001 From: Aleksa Sarai Date: Fri, 21 Feb 2020 16:43:41 +1100 Subject: [PATCH] libcontainer: dual-license nsenter/cloned_binary.c The new license is Apache-2.0 OR LPGL-2.1-or-later. This is necessary for libcrun to be relicensed under the LGPL-2.1[1], and all of the relevant copyright holders have agreed to relicense this code under the dual license: * Aleksa Sarai [2] * Christian Brauner [3] * Justin Cormack [4] Because it is still dual-licensed as an Apache-2.0 work, this doesn't affect it's usability within runc or any other dependent projects. [1]: https://github.com/containers/crun/issues/256 [2]: https://github.com/containers/crun/issues/256#issuecomment-589498088 [3]: https://github.com/containers/crun/issues/256#issuecomment-589605034 [4]: https://github.com/containers/crun/issues/256#issuecomment-589504231 Signed-off-by: Aleksa Sarai --- libcontainer/nsenter/cloned_binary.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/libcontainer/nsenter/cloned_binary.c b/libcontainer/nsenter/cloned_binary.c index ad10f140..b6608299 100644 --- a/libcontainer/nsenter/cloned_binary.c +++ b/libcontainer/nsenter/cloned_binary.c @@ -1,7 +1,14 @@ +// SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later /* * Copyright (C) 2019 Aleksa Sarai * Copyright (C) 2019 SUSE LLC * + * This work is dual licensed under the following licenses. You may use, + * redistribute, and/or modify the work under the conditions of either (or + * both) licenses. + * + * === Apache-2.0 === + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -13,6 +20,23 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. + * + * === LGPL-2.1-or-later === + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see + * . + * */ #define _GNU_SOURCE