Skip to content

Commit

Permalink
[Docs] Unify and document copyright notices
Browse files Browse the repository at this point in the history
Signed-off-by: Michał Kowalczyk <mkow@invisiblethingslab.com>
  • Loading branch information
mkow authored and Dmitrii Kuvaiskii committed Feb 17, 2022
1 parent b5c94d0 commit 0c43b42
Show file tree
Hide file tree
Showing 43 changed files with 88 additions and 75 deletions.
12 changes: 12 additions & 0 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,18 @@ Style Guidelines
See `style guidelines
<https://gramine.rtfd.io/en/latest/devel/coding-style.html>`__.

Copyrights and Licenses
^^^^^^^^^^^^^^^^^^^^^^^

All new contributions should be licensed under LGPL-3.0-or-later. All source
files should include a license notice in `SPDX format
<https://spdx.org/licenses/>`__. If you modified a significant portion of a
file then you should also add an entry to the list of per-file copyright
notice. Please keep in mind that this list is only a courtesy notice for the
readers with a rough summary of the copyrights. Because it's just a summary, we
inlude only the year of the most recent copyrighted modification to the file
(to know when all the copyright claims from a specific owner expire).

.. _running_regression_tests:

Running Regression Tests by Hand
Expand Down
2 changes: 1 addition & 1 deletion Documentation/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
# -- Project information -----------------------------------------------------

project = 'Gramine'
copyright = '2019-2021, Gramine Contributors'
copyright = '2022, Gramine Contributors'
author = 'Gramine Contributors'

# The short X.Y version
Expand Down
2 changes: 1 addition & 1 deletion LibOS/shim/test/ltp/test_ltp.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
# SPDX-License-Identifier: LGPL-3.0-or-later
# Copyright (C) 2019 Wojtek Porczyk <woju@invisiblethingslab.com>
# Copyright (c) 2021 Intel Corporation
# Copyright (C) 2021 Intel Corporation
# Paweł Marczewski <pawel@invisiblethingslab.com>

import configparser
Expand Down
2 changes: 1 addition & 1 deletion Pal/include/arch/x86_64/Linux/ucontext.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* SPDX-License-Identifier: LGPL-3.0-or-later */
/* Copyright (C) 2020-2021 Intel Corporation
/* Copyright (C) 2021 Intel Corporation
* Borys Popławski <borysp@invisiblethingslab.com>
*/
#ifndef LINUX_X86_64_UCONTEXT_H_
Expand Down
4 changes: 2 additions & 2 deletions Pal/src/host/Linux-SGX/enclave_pf.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: LGPL-3.0-or-later */
/* Copyright (C) 2018-2020 Invisible Things Lab
* Rafal Wojdyla <omeg@invisiblethingslab.com>
/* Copyright (C) 2020 Invisible Things Lab
* Rafal Wojdyla <omeg@invisiblethingslab.com>
*/

#include "crypto.h"
Expand Down
7 changes: 4 additions & 3 deletions Pal/src/host/Linux-SGX/enclave_pf.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/* SPDX-License-Identifier: LGPL-3.0-or-later */
/* Copyright (C) 2019-2020 Invisible Things Lab
* Rafal Wojdyla <omeg@invisiblethingslab.com>
* Copyright (C) 2021 Intel Corporation */
/* Copyright (C) 2020 Invisible Things Lab
* Rafal Wojdyla <omeg@invisiblethingslab.com>
* Copyright (C) 2021 Intel Corporation
*/

/* Protected files (PF) are encrypted on disk and transparently decrypted when accessed by Gramine
* or by app running inside Gramine. Internal protected file format was ported from Intel SGX SDK,
Expand Down
6 changes: 3 additions & 3 deletions Pal/src/host/Linux-SGX/protected-files/lru_cache.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* SPDX-License-Identifier: LGPL-3.0-or-later */
/* Copyright (C) 2019-2020 Invisible Things Lab
* Rafal Wojdyla <omeg@invisiblethingslab.com>
* Copyright (C) 2011-2020 Intel Corporation
/* Copyright (C) 2020 Invisible Things Lab
* Rafal Wojdyla <omeg@invisiblethingslab.com>
* Copyright (C) 2020 Intel Corporation
*/

/* TODO: add regression tests for this */
Expand Down
6 changes: 3 additions & 3 deletions Pal/src/host/Linux-SGX/protected-files/lru_cache.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* SPDX-License-Identifier: LGPL-3.0-or-later */
/* Copyright (C) 2019-2020 Invisible Things Lab
* Rafal Wojdyla <omeg@invisiblethingslab.com>
* Copyright (C) 2011-2020 Intel Corporation
/* Copyright (C) 2020 Invisible Things Lab
* Rafal Wojdyla <omeg@invisiblethingslab.com>
* Copyright (C) 2020 Intel Corporation
*/

/* Least-recently used cache, used by the protected file implementation for optimizing
Expand Down
6 changes: 3 additions & 3 deletions Pal/src/host/Linux-SGX/protected-files/protected_files.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* SPDX-License-Identifier: LGPL-3.0-or-later */
/* Copyright (C) 2019-2020 Invisible Things Lab
* Rafal Wojdyla <omeg@invisiblethingslab.com>
* Copyright (C) 2011-2019 Intel Corporation
/* Copyright (C) 2020 Invisible Things Lab
* Rafal Wojdyla <omeg@invisiblethingslab.com>
* Copyright (C) 2019 Intel Corporation
*/

#ifndef IN_PAL
Expand Down
6 changes: 3 additions & 3 deletions Pal/src/host/Linux-SGX/protected-files/protected_files.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* SPDX-License-Identifier: LGPL-3.0-or-later */
/* Copyright (C) 2019-2020 Invisible Things Lab
* Rafal Wojdyla <omeg@invisiblethingslab.com>
* Copyright (C) 2011-2019 Intel Corporation
/* Copyright (C) 2020 Invisible Things Lab
* Rafal Wojdyla <omeg@invisiblethingslab.com>
* Copyright (C) 2019 Intel Corporation
*/

/* See README.rst for protected files overview */
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* SPDX-License-Identifier: LGPL-3.0-or-later */
/* Copyright (C) 2019-2020 Invisible Things Lab
* Rafal Wojdyla <omeg@invisiblethingslab.com>
* Copyright (C) 2011-2020 Intel Corporation
/* Copyright (C) 2020 Invisible Things Lab
* Rafal Wojdyla <omeg@invisiblethingslab.com>
* Copyright (C) 2020 Intel Corporation
*/

#ifndef PROTECTED_FILES_FORMAT_H_
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* SPDX-License-Identifier: LGPL-3.0-or-later */
/* Copyright (C) 2019-2020 Invisible Things Lab
* Rafal Wojdyla <omeg@invisiblethingslab.com>
* Copyright (C) 2011-2019 Intel Corporation
/* Copyright (C) 2020 Invisible Things Lab
* Rafal Wojdyla <omeg@invisiblethingslab.com>
* Copyright (C) 2019 Intel Corporation
*/

#ifndef PROTECTED_FILES_INTERNAL_H_
Expand Down
4 changes: 2 additions & 2 deletions Pal/src/host/Linux-SGX/tools/common/attestation.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: LGPL-3.0-or-later */
/* Copyright (C) 2018-2020 Invisible Things Lab
* Rafal Wojdyla <omeg@invisiblethingslab.com>
/* Copyright (C) 2020 Invisible Things Lab
* Rafal Wojdyla <omeg@invisiblethingslab.com>
*/

#define _GNU_SOURCE
Expand Down
4 changes: 2 additions & 2 deletions Pal/src/host/Linux-SGX/tools/common/attestation.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: LGPL-3.0-or-later */
/* Copyright (C) 2018-2020 Invisible Things Lab
* Rafal Wojdyla <omeg@invisiblethingslab.com>
/* Copyright (C) 2020 Invisible Things Lab
* Rafal Wojdyla <omeg@invisiblethingslab.com>
*/

#ifndef ATTESTATION_H
Expand Down
4 changes: 2 additions & 2 deletions Pal/src/host/Linux-SGX/tools/common/ias.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: LGPL-3.0-or-later */
/* Copyright (C) 2018-2020 Invisible Things Lab
* Rafal Wojdyla <omeg@invisiblethingslab.com>
/* Copyright (C) 2020 Invisible Things Lab
* Rafal Wojdyla <omeg@invisiblethingslab.com>
*/

#define _GNU_SOURCE
Expand Down
4 changes: 2 additions & 2 deletions Pal/src/host/Linux-SGX/tools/common/ias.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: LGPL-3.0-or-later */
/* Copyright (C) 2018-2020 Invisible Things Lab
* Rafal Wojdyla <omeg@invisiblethingslab.com>
/* Copyright (C) 2020 Invisible Things Lab
* Rafal Wojdyla <omeg@invisiblethingslab.com>
*/

#ifndef _IAS_H
Expand Down
4 changes: 2 additions & 2 deletions Pal/src/host/Linux-SGX/tools/common/pf_util.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: LGPL-3.0-or-later */
/* Copyright (C) 2018-2020 Invisible Things Lab
* Rafal Wojdyla <omeg@invisiblethingslab.com>
/* Copyright (C) 2020 Invisible Things Lab
* Rafal Wojdyla <omeg@invisiblethingslab.com>
*/

#define _GNU_SOURCE
Expand Down
4 changes: 2 additions & 2 deletions Pal/src/host/Linux-SGX/tools/common/pf_util.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: LGPL-3.0-or-later */
/* Copyright (C) 2018-2020 Invisible Things Lab
* Rafal Wojdyla <omeg@invisiblethingslab.com>
/* Copyright (C) 2020 Invisible Things Lab
* Rafal Wojdyla <omeg@invisiblethingslab.com>
*/

#ifndef PF_UTIL_H
Expand Down
4 changes: 2 additions & 2 deletions Pal/src/host/Linux-SGX/tools/common/util.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: LGPL-3.0-or-later */
/* Copyright (C) 2018-2020 Invisible Things Lab
* Rafal Wojdyla <omeg@invisiblethingslab.com>
/* Copyright (C) 2020 Invisible Things Lab
* Rafal Wojdyla <omeg@invisiblethingslab.com>
*/

#define _LARGEFILE64_SOURCE
Expand Down
4 changes: 2 additions & 2 deletions Pal/src/host/Linux-SGX/tools/common/util.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: LGPL-3.0-or-later */
/* Copyright (C) 2018-2020 Invisible Things Lab
* Rafal Wojdyla <omeg@invisiblethingslab.com>
/* Copyright (C) 2020 Invisible Things Lab
* Rafal Wojdyla <omeg@invisiblethingslab.com>
*/

#ifndef UTIL_H
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: LGPL-3.0-or-later */
/* Copyright (C) 2018-2020 Invisible Things Lab
* Michal Kowalczyk <mkow@invisiblethingslab.com>
/* Copyright (C) 2020 Invisible Things Lab
* Michal Kowalczyk <mkow@invisiblethingslab.com>
*/

#include <cinttypes>
Expand Down
4 changes: 2 additions & 2 deletions Pal/src/host/Linux-SGX/tools/pf_crypt/pf_crypt.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: LGPL-3.0-or-later */
/* Copyright (C) 2018-2020 Invisible Things Lab
* Rafal Wojdyla <omeg@invisiblethingslab.com>
/* Copyright (C) 2020 Invisible Things Lab
* Rafal Wojdyla <omeg@invisiblethingslab.com>
*/

#define _GNU_SOURCE
Expand Down
4 changes: 2 additions & 2 deletions Pal/src/host/Linux-SGX/tools/pf_tamper/pf_tamper.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: LGPL-3.0-or-later */
/* Copyright (C) 2019-2020 Invisible Things Lab
* Rafal Wojdyla <omeg@invisiblethingslab.com>
/* Copyright (C) 2020 Invisible Things Lab
* Rafal Wojdyla <omeg@invisiblethingslab.com>
*/

#define _GNU_SOURCE
Expand Down
4 changes: 2 additions & 2 deletions Pal/src/host/Linux-SGX/tools/quote-dump/quote_dump.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: LGPL-3.0-or-later */
/* Copyright (C) 2018-2020 Invisible Things Lab
* Rafal Wojdyla <omeg@invisiblethingslab.com>
/* Copyright (C) 2020 Invisible Things Lab
* Rafal Wojdyla <omeg@invisiblethingslab.com>
*/

#define _GNU_SOURCE
Expand Down
2 changes: 1 addition & 1 deletion Pal/src/host/Linux-SGX/tools/ra-tls/ra_tls.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* SPDX-License-Identifier: LGPL-3.0-or-later */
/* Copyright (C) 2018-2020 Intel Labs */
/* Copyright (C) 2020 Intel Labs */

#include <mbedtls/x509_crt.h>
#include <stdint.h>
Expand Down
2 changes: 1 addition & 1 deletion Pal/src/host/Linux-SGX/tools/ra-tls/ra_tls_attest.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* SPDX-License-Identifier: LGPL-3.0-or-later */
/* Copyright (C) 2018-2020 Intel Labs */
/* Copyright (C) 2020 Intel Labs */

/*!
* \file
Expand Down
2 changes: 1 addition & 1 deletion Pal/src/host/Linux-SGX/tools/ra-tls/ra_tls_verify_common.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* SPDX-License-Identifier: LGPL-3.0-or-later */
/* Copyright (C) 2018-2020 Intel Labs */
/* Copyright (C) 2020 Intel Labs */

/*!
* \file
Expand Down
2 changes: 1 addition & 1 deletion Pal/src/host/Linux-SGX/tools/ra-tls/ra_tls_verify_dcap.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* SPDX-License-Identifier: LGPL-3.0-or-later */
/* Copyright (C) 2018-2020 Intel Labs */
/* Copyright (C) 2020 Intel Labs */

/*!
* \file
Expand Down
2 changes: 1 addition & 1 deletion Pal/src/host/Linux-SGX/tools/ra-tls/ra_tls_verify_epid.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* SPDX-License-Identifier: LGPL-3.0-or-later */
/* Copyright (C) 2018-2020 Intel Labs */
/* Copyright (C) 2020 Intel Labs */

/*!
* \file
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: LGPL-3.0-or-later */
/* Copyright (C) 2018-2020 Invisible Things Lab
* Rafal Wojdyla <omeg@invisiblethingslab.com>
/* Copyright (C) 2020 Invisible Things Lab
* Rafal Wojdyla <omeg@invisiblethingslab.com>
*/

#define _GNU_SOURCE
Expand Down
2 changes: 1 addition & 1 deletion Scripts/gen-pal-map.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
# SPDX-License-Identifier: LGPL-3.0-or-later
# Copyright (c) 2021 Intel Corporation
# Copyright (C) 2021 Intel Corporation
# Wojtek Porczyk <woju@invisiblethingslab.com>
#

Expand Down
2 changes: 1 addition & 1 deletion Scripts/get-python-platlib.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
# SPDX-License-Identifier: LGPL-3.0-or-later
# Copyright (c) 2021 Intel Corporation
# Copyright (C) 2021 Intel Corporation
# Wojtek Porczyk <woju@invisiblethingslab.com>
#

Expand Down
2 changes: 1 addition & 1 deletion python/gramine-gen-depend
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
# SPDX-License-Identifier: LGPL-3.0-or-later
# Copyright (c) 2021 Intel Corporation
# Copyright (C) 2021 Intel Corporation
# Borys Popławski <borysp@invisiblethingslab.com>

import os
Expand Down
2 changes: 1 addition & 1 deletion python/gramine-manifest
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
# SPDX-License-Identifier: LGPL-3.0-or-later
# Copyright (c) 2021 Intel Corporation
# Copyright (C) 2021 Intel Corporation
# Borys Popławski <borysp@invisiblethingslab.com>

import click
Expand Down
2 changes: 1 addition & 1 deletion python/gramine-sgx-get-token
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
# SPDX-License-Identifier: LGPL-3.0-or-later
# Copyright (c) 2021 Intel Corporation
# Copyright (C) 2021 Intel Corporation
# Borys Popławski <borysp@invisiblethingslab.com>

import click
Expand Down
2 changes: 1 addition & 1 deletion python/gramine-sgx-sign
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
# SPDX-License-Identifier: LGPL-3.0-or-later
# Copyright (c) 2021 Intel Corporation
# Copyright (C) 2021 Intel Corporation
# Borys Popławski <borysp@invisiblethingslab.com>

import datetime
Expand Down
2 changes: 1 addition & 1 deletion python/gramine-test
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
# SPDX-License-Identifier: LGPL-3.0-or-later
# Copyright (c) 2021 Intel Corporation
# Copyright (C) 2021 Intel Corporation
# Paweł Marczewski <pawel@invisiblethingslab.com>

import os
Expand Down
4 changes: 2 additions & 2 deletions python/graminelibos/manifest.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# SPDX-License-Identifier: LGPL-3.0-or-later
# Copyright (c) 2021 Wojtek Porczyk <woju@invisiblethingslab.com>
# Copyright (c) 2022 Intel Corporation
# Copyright (C) 2021 Wojtek Porczyk <woju@invisiblethingslab.com>
# Copyright (C) 2022 Intel Corporation
# Michał Kowalczyk <mkow@invisiblethingslab.com>
# Borys Popławski <borysp@invisiblethingslab.com>

Expand Down
2 changes: 1 addition & 1 deletion python/graminelibos/sgx_get_token.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
# SPDX-License-Identifier: LGPL-3.0-or-later
# Copyright (c) 2021 Intel Corporation
# Copyright (C) 2021 Intel Corporation
# Borys Popławski <borysp@invisiblethingslab.com>

import hashlib
Expand Down
2 changes: 1 addition & 1 deletion python/graminelibos/sgx_sign.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Copyright (C) 2014 Stony Brook University
# Copyright (C) 2021 Intel Corporation
# Michał Kowalczyk <mkow@invisiblethingslab.com>
# Copyright (c) 2021 Intel Corporation
# Copyright (C) 2021 Intel Corporation
# Borys Popławski <borysp@invisiblethingslab.com>

import hashlib
Expand Down
2 changes: 1 addition & 1 deletion python/graminelibos/sigstruct.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
# SPDX-License-Identifier: LGPL-3.0-or-later
# Copyright (c) 2021 Intel Corporation
# Copyright (C) 2021 Intel Corporation
# Borys Popławski <borysp@invisiblethingslab.com>

import struct
Expand Down
2 changes: 1 addition & 1 deletion python/graminelibos/util_tests.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
# SPDX-License-Identifier: LGPL-3.0-or-later
# Copyright (c) 2021 Intel Corporation
# Copyright (C) 2021 Intel Corporation
# Paweł Marczewski <pawel@invisiblethingslab.com>

import io
Expand Down
10 changes: 5 additions & 5 deletions tools/gramine.in
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/usr/bin/env bash
# SPDX-License-Identifier: LGPL-3.0-or-later
# Copyright (C) 2014 Stony Brook University
# Copyright (C) 2019 Invisible Things Lab
# Copyright (C) 2020-2021 Intel Corporation
# Michał Kowalczyk <mkow@invisiblethingslab.com>
# Wojtek Porczyk <woju@invisiblethingslab.com>
# Copyright (C) 2014 Stony Brook University
# Copyright (C) 2019 Invisible Things Lab
# Copyright (C) 2021 Intel Corporation
# Michał Kowalczyk <mkow@invisiblethingslab.com>
# Wojtek Porczyk <woju@invisiblethingslab.com>


# This is how we detect whether we're installed or running from inside git repo.
Expand Down

0 comments on commit 0c43b42

Please sign in to comment.