diff options
author | Kelvin M. Klann <kmk3.code@protonmail.com> | 2023-02-16 10:07:45 -0300 |
---|---|---|
committer | Kelvin M. Klann <kmk3.code@protonmail.com> | 2023-02-16 18:40:06 -0300 |
commit | 901a5b581f3a29cd68577c8ce04aecfba2107903 (patch) | |
tree | dc2c739ecd9a61bc6cb218350a46570b4e3262bc /src | |
parent | selinux.c: Split Copyright notice in two (diff) | |
download | firejail-901a5b581f3a29cd68577c8ce04aecfba2107903.tar.gz firejail-901a5b581f3a29cd68577c8ce04aecfba2107903.tar.zst firejail-901a5b581f3a29cd68577c8ce04aecfba2107903.zip |
selinux.c: Use same license as upstream file (LGPLv2.1+)
The upstream file is licensed under the LGPLv2.1+ and it uses an SPDX
license identifier rather than an LGPL license notice[1].
And according to the GNU project, the LGPLv2.1+ is compatible with both
the GPLv2 (with the result being GPLv2) and the GPLv3 (with the result
being GPLv3), though the reverse (GPL -> LGPL) does not apply[2] [3].
This means that if we make changes that are only available under the
GPLv2, systemd would be unable to copy them back and release the result
under the LGPLv2.1 without being in violation of the GPLv2.
So replace the GPL license notice with the SPDX license identifier of
the upstream file ("LGPL-2.1-or-later"), to make it easier to share
changes between both projects.
See also the following systemd commits[4] [5] [6] [7]:
* 53e1b68390 ("Add SPDX license identifiers to source files under the
LGPL", 2017-11-18)
* db9ecf0501 ("license: LGPL-2.1+ -> LGPL-2.1-or-later", 2020-11-09)
[1] https://github.com/systemd/systemd/blob/254d1313ae5a69c08c9b93032aaaf3d6083cfc07/src/shared/selinux-util.c
[2] https://www.gnu.org/licenses/license-list.en.html#LGPLv2.1
[3] https://www.gnu.org/licenses/license-compatibility.html
[4] https://github.com/systemd/systemd/commit/53e1b683907c2f12330f00feb9630150196f064d
[5] https://github.com/systemd/systemd/pull/7386
[6] https://github.com/systemd/systemd/commit/db9ecf050165fd1033c6f81485917e229c4be537
[7] https://github.com/systemd/systemd/pull/17548
Diffstat (limited to 'src')
-rw-r--r-- | src/firejail/selinux.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/src/firejail/selinux.c b/src/firejail/selinux.c index 8f40e234f..5beda294d 100644 --- a/src/firejail/selinux.c +++ b/src/firejail/selinux.c | |||
@@ -1,22 +1,9 @@ | |||
1 | /* SPDX-License-Identifier: LGPL-2.1-or-later */ | ||
1 | /* | 2 | /* |
2 | * Copyright (C) 2009-2020 The systemd Authors | 3 | * Copyright (C) 2009-2020 The systemd Authors |
3 | * Copyright (C) 2014-2023 Firejail Authors | 4 | * Copyright (C) 2014-2023 Firejail Authors |
4 | * | 5 | * |
5 | * This file is part of firejail project, from systemd selinux-util.c | 6 | * This file is part of firejail project, from systemd selinux-util.c |
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify | ||
8 | * it under the terms of the GNU General Public License as published by | ||
9 | * the Free Software Foundation; either version 2 of the License, or | ||
10 | * (at your option) any later version. | ||
11 | * | ||
12 | * This program is distributed in the hope that it will be useful, | ||
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
15 | * GNU General Public License for more details. | ||
16 | * | ||
17 | * You should have received a copy of the GNU General Public License along | ||
18 | * with this program; if not, write to the Free Software Foundation, Inc., | ||
19 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | ||
20 | */ | 7 | */ |
21 | #if HAVE_SELINUX | 8 | #if HAVE_SELINUX |
22 | #include "firejail.h" | 9 | #include "firejail.h" |