Skip to content

Commit

Permalink
Change license to LGPL-2.0-or-later and GPL-2.0-or-later
Browse files Browse the repository at this point in the history
Currently libimaevm provided by this project is used by the tool evmctl,
which is also provided by this project.

An issue was reported about using libimaevm with other software. Its
GPL2-only license makes it incompatible to use with other licenses, in
particular GPL3-only.

To address this issue, change the project license to GPL-2.0-or-later
and libimaevm to LGPL 2.0 or later.

This patch includes all acks.

Link: https://lore.kernel.org/linux-integrity/9205ed32da8814d8c4d9bde5a03d92c7588f1d9a.1708503094.git.dmitry.kasatkin@gmail.com
Link: https://lore.kernel.org/linux-integrity/103252ffff09c607e83c887cab2e0af5404d62ff.1710774200.git.dmitry.kasatkin@gmail.com
Signed-off-by: Dmitry Kasatkin <dmitry.kasatkin@gmail.com>
Acked-by: Dmitry Kasatkin <dmitry.kasatkin@huawei.com>
Acked-by: Petr Vorel <pvorel@suse.cz>
Acked-by: Mimi Zohar <zohar@linux.ibm.com> # all IBM contributions
Acked-by: Stefan Berger <stefanb@linux.ibm.com>
Acked-by: Vitaly Chikunov <vt@altlinux.org>
Acked-by: Ken Goldman <kgold@linux.ibm.com>
Acked-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Acked-by: Bruno Meneguele <bmeneg@redhat.com>
Acked-by: Roberto Sassu <roberto.sassu@huawei.com>
Acked-by: George Wilson <gcwilson@linux.ibm.com>
Acked-by: Tergel Myanganbayar <tergelmyanganbayar2024@u.northwestern.edu>
Acked-by: André Draszik <git@andred.net>
Acked-by: Frank Sorenson <sorenson@redhat.com>
Acked-by: Stephen Smalley <stephen.smalley.work@gmail.com>
Acked-by: Vivek Goyal <vgoyal@redhat.com>
Acked-by: Alberto Mardegan <a.mardegan@omp.ru>
Acked-by: Eric Biggers <ebiggers@google.com> # all Google contributions
Acked-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Acked-by: Patrick Uiterwijk <patrick@puiterwijk.org>
Acked-by: Kai Svahn <kai.svahn@linux.intel.com> # all Intel contributions
Acked-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com>
Acked-by: yh00.jung@samsung.com # all Samsung contributions
Acked-by: dmitry.kasatkin@gmail.com # all Samsung contributions with consent from Samsung corporation
  • Loading branch information
kdsoss authored and mimizohar committed Jun 26, 2024
1 parent 0f3a00e commit 6adc50f
Show file tree
Hide file tree
Showing 17 changed files with 30 additions and 511 deletions.
339 changes: 0 additions & 339 deletions COPYING

This file was deleted.

13 changes: 13 additions & 0 deletions LICENSES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
ima-evm-utils is provided under following licenses:

libimaevm is provided under:

SPDX-License-Identifier: LGPL-2.0-or-later

https://spdx.org/licenses/LGPL-2.0-or-later.html

evmctl is provided under:

SPDX-License-Identifier: GPL-2.0-or-later

https://spdx.org/licenses/GPL-2.0-or-later.html
25 changes: 1 addition & 24 deletions src/evmctl.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
/*
* ima-evm-utils - IMA/EVM support utilities
*
Expand All @@ -10,30 +11,6 @@
* <dmitry.kasatkin@intel.com>
* <d.kasatkin@samsung.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* version 2 as published by the Free Software Foundation.
*
* This program 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* As a special exception, the copyright holders give permission to link the
* code of portions of this program with the OpenSSL library under certain
* conditions as described in each individual source file and distribute
* linked combinations including the program with the OpenSSL library. You
* must comply with the GNU General Public License in all respects
* for all of the code used other than as permitted herein. If you modify
* file(s) with this exception, you may extend this exception to your
* version of the file(s), but you are not obligated to do so. If you do not
* wish to do so, delete this exception statement from your version. If you
* delete this exception statement from all source files in the program,
* then also delete it in the license file.
*
* File: evmctl.c
* IMA/EVM control program
*/
Expand Down
10 changes: 1 addition & 9 deletions src/hash_info.gen
Original file line number Diff line number Diff line change
@@ -1,18 +1,10 @@
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0-or-later
#
# Generate hash_info.h from kernel headers
#
# Copyright (C) 2018 <vt@altlinux.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program 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 General Public License for more details.

KERNEL_HEADERS=$1
HASH_INFO_H=uapi/linux/hash_info.h
Expand Down
25 changes: 1 addition & 24 deletions src/imaevm.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.0-or-later */
/*
* ima-evm-utils - IMA/EVM support utilities
*
Expand All @@ -10,30 +11,6 @@
* <dmitry.kasatkin@intel.com>
* <d.kasatkin@samsung.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* version 2 as published by the Free Software Foundation.
*
* This program 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* As a special exception, the copyright holders give permission to link the
* code of portions of this program with the OpenSSL library under certain
* conditions as described in each individual source file and distribute
* linked combinations including the program with the OpenSSL library. You
* must comply with the GNU General Public License in all respects
* for all of the code used other than as permitted herein. If you modify
* file(s) with this exception, you may extend this exception to your
* version of the file(s), but you are not obligated to do so. If you do not
* wish to do so, delete this exception statement from your version. If you
* delete this exception statement from all source files in the program,
* then also delete it in the license file.
*
* File: imaevm.h
* IMA/EVM header file
*/
Expand Down
25 changes: 1 addition & 24 deletions src/libimaevm.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: LGPL-2.0-or-later
/*
* ima-evm-utils - IMA/EVM support utilities
*
Expand All @@ -10,30 +11,6 @@
* <dmitry.kasatkin@intel.com>
* <d.kasatkin@samsung.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* version 2 as published by the Free Software Foundation.
*
* This program 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* As a special exception, the copyright holders give permission to link the
* code of portions of this program with the OpenSSL library under certain
* conditions as described in each individual source file and distribute
* linked combinations including the program with the OpenSSL library. You
* must comply with the GNU General Public License in all respects
* for all of the code used other than as permitted herein. If you modify
* file(s) with this exception, you may extend this exception to your
* version of the file(s), but you are not obligated to do so. If you do not
* wish to do so, delete this exception statement from your version. If you
* delete this exception statement from all source files in the program,
* then also delete it in the license file.
*
* File: libimaevm.c
* IMA/EVM library
*/
Expand Down
2 changes: 2 additions & 0 deletions src/pcr.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-or-later */

int tpm2_pcr_supported(void);
int tpm2_pcr_read(const char *algo_name, uint32_t pcr_handle, uint8_t *hwpcr,
int len, char **errmsg);
2 changes: 1 addition & 1 deletion src/pcr_ibmtss.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
// SPDX-License-Identifier: GPL-2.0-or-later
/*
* Support PCR reading implementation based on IBM TSS2
*
Expand Down
25 changes: 1 addition & 24 deletions src/pcr_tss.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
/*
* ima-evm-utils - IMA/EVM support utilities
*
Expand All @@ -10,30 +11,6 @@
* <dmitry.kasatkin@intel.com>
* <d.kasatkin@samsung.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* version 2 as published by the Free Software Foundation.
*
* This program 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* As a special exception, the copyright holders give permission to link the
* code of portions of this program with the OpenSSL library under certain
* conditions as described in each individual source file and distribute
* linked combinations including the program with the OpenSSL library. You
* must comply with the GNU General Public License in all respects
* for all of the code used other than as permitted herein. If you modify
* file(s) with this exception, you may extend this exception to your
* version of the file(s), but you are not obligated to do so. If you do not
* wish to do so, delete this exception statement from your version. If you
* delete this exception statement from all source files in the program,
* then also delete it in the license file.
*
* File: pcr_tss.c
* PCR reading implementation based on Intel TSS2
*/
Expand Down
25 changes: 1 addition & 24 deletions src/pcr_tsspcrread.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
/*
* ima-evm-utils - IMA/EVM support utilities
*
Expand All @@ -10,30 +11,6 @@
* <dmitry.kasatkin@intel.com>
* <d.kasatkin@samsung.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* version 2 as published by the Free Software Foundation.
*
* This program 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* As a special exception, the copyright holders give permission to link the
* code of portions of this program with the OpenSSL library under certain
* conditions as described in each individual source file and distribute
* linked combinations including the program with the OpenSSL library. You
* must comply with the GNU General Public License in all respects
* for all of the code used other than as permitted herein. If you modify
* file(s) with this exception, you may extend this exception to your
* version of the file(s), but you are not obligated to do so. If you do not
* wish to do so, delete this exception statement from your version. If you
* delete this exception statement from all source files in the program,
* then also delete it in the license file.
*
* File: pcr_tsspcrread.c
* PCR reading implementation based on IBM TSS2
*/
Expand Down
2 changes: 1 addition & 1 deletion src/utils.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
// SPDX-License-Identifier: GPL-2.0-or-later
/*
* utils: set of common functions
*
Expand Down
2 changes: 2 additions & 0 deletions src/utils.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-or-later */

#include <ctype.h>
#include <sys/types.h>

Expand Down
11 changes: 1 addition & 10 deletions tests/functions.sh
Original file line number Diff line number Diff line change
@@ -1,19 +1,10 @@
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0
# SPDX-License-Identifier: GPL-2.0-or-later
#
# ima-evm-utils tests bash functions
#
# Copyright (C) 2020 Vitaly Chikunov <vt@altlinux.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program 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 General Public License for more details.

# Tests accounting
declare -i testspass=0 testsfail=0 testsskip=0
Expand Down
11 changes: 1 addition & 10 deletions tests/gen-keys.sh
Original file line number Diff line number Diff line change
@@ -1,19 +1,10 @@
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0
# SPDX-License-Identifier: GPL-2.0-or-later
#
# Generate keys for the tests
#
# Copyright (C) 2020 Vitaly Chikunov <vt@altlinux.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program 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 General Public License for more details.

# shellcheck disable=SC2043

Expand Down
11 changes: 1 addition & 10 deletions tests/ima_hash.test
Original file line number Diff line number Diff line change
@@ -1,19 +1,10 @@
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0
# SPDX-License-Identifier: GPL-2.0-or-later
#
# evmctl ima_hash tests
#
# Copyright (C) 2020 Vitaly Chikunov <vt@altlinux.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program 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 General Public License for more details.

cd "$(dirname "$0")" || exit 1
PATH=../src:$PATH
Expand Down
11 changes: 1 addition & 10 deletions tests/sign_verify.test
Original file line number Diff line number Diff line change
@@ -1,19 +1,10 @@
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0
# SPDX-License-Identifier: GPL-2.0-or-later
#
# evmctl {,ima_}{sign,verify} tests
#
# Copyright (C) 2020 Vitaly Chikunov <vt@altlinux.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program 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 General Public License for more details.

cd "$(dirname "$0")" || exit 1
PATH=../src:$PATH
Expand Down
2 changes: 1 addition & 1 deletion tests/test_mmap.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
// SPDX-License-Identifier: GPL-2.0-or-later
/*
* Copyright (C) 2023 Huawei Technologies Duesseldorf GmbH
*
Expand Down

0 comments on commit 6adc50f

Please sign in to comment.