diff --git a/.github/ISSUE_TEMPLATE/Bug_report.md b/.github/ISSUE_TEMPLATE/Bug_report.md index ca8213863c1..8eb40d4339e 100644 --- a/.github/ISSUE_TEMPLATE/Bug_report.md +++ b/.github/ISSUE_TEMPLATE/Bug_report.md @@ -1,7 +1,7 @@ --- name: Bug report about: A report of an error in a recent systemd version - +SPDX-License-Identifier: LGPL-2.1-or-later --- **systemd version the issue has been seen with** diff --git a/.github/ISSUE_TEMPLATE/Feature_request.md b/.github/ISSUE_TEMPLATE/Feature_request.md index 3c53d728d81..ad9f447f65a 100644 --- a/.github/ISSUE_TEMPLATE/Feature_request.md +++ b/.github/ISSUE_TEMPLATE/Feature_request.md @@ -1,7 +1,7 @@ --- name: Feature request about: Suggest an improvement - +SPDX-License-Identifier: LGPL-2.1-or-later --- **Is your feature request related to a problem? Please describe.** diff --git a/.github/labeler.yml b/.github/labeler.yml index 773d5750044..7d128f42d6f 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: LGPL-2.1-or-later + hwdb: - hwdb.d/**/* units: diff --git a/.github/workflows/build_test.sh b/.github/workflows/build_test.sh index 57df14e2fc1..89d2f85cfbc 100755 --- a/.github/workflows/build_test.sh +++ b/.github/workflows/build_test.sh @@ -1,4 +1,5 @@ #!/bin/bash +# SPDX-License-Identifier: LGPL-2.1-or-later set -ex diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml index 3bb0cbddb21..763a9b8025c 100644 --- a/.github/workflows/build_test.yml +++ b/.github/workflows/build_test.yml @@ -1,5 +1,6 @@ --- # vi: ts=2 sw=2 et: +# SPDX-License-Identifier: LGPL-2.1-or-later # name: Build test on: diff --git a/.github/workflows/cifuzz.yml b/.github/workflows/cifuzz.yml index 14d81a67ffb..562f2963997 100644 --- a/.github/workflows/cifuzz.yml +++ b/.github/workflows/cifuzz.yml @@ -1,5 +1,6 @@ --- # vi: ts=2 sw=2 et: +# SPDX-License-Identifier: LGPL-2.1-or-later # See: https://google.github.io/oss-fuzz/getting-started/continuous-integration/ name: CIFuzz diff --git a/.github/workflows/coverity.yml b/.github/workflows/coverity.yml index a0eb0f01fdc..7581335a492 100644 --- a/.github/workflows/coverity.yml +++ b/.github/workflows/coverity.yml @@ -1,5 +1,6 @@ --- # vi: ts=2 sw=2 et: +# SPDX-License-Identifier: LGPL-2.1-or-later # name: Coverity diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 76d67a3a5c0..aad5d2157ff 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -1,4 +1,9 @@ +--- +# vi: ts=2 sw=2 et: +# SPDX-License-Identifier: LGPL-2.1-or-later +# name: "Pull Request Labeler" + on: - pull_request_target diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 115f5c7e0ea..1136c0523b5 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -1,6 +1,7 @@ --- +# vi: ts=2 sw=2 et: +# SPDX-License-Identifier: LGPL-2.1-or-later # https://github.com/marketplace/actions/super-linter - name: Lint Code Base on: diff --git a/.github/workflows/mkosi.yml b/.github/workflows/mkosi.yml index 6c601543608..9ae40e316f6 100644 --- a/.github/workflows/mkosi.yml +++ b/.github/workflows/mkosi.yml @@ -1,7 +1,9 @@ +--- +# vi: ts=2 sw=2 et: +# SPDX-License-Identifier: LGPL-2.1-or-later +# Simple boot tests that build and boot the mkosi images generated by the mkosi config files in mkosi.default.d/. name: mkosi -# Simple boot tests that build and boot the mkosi images generated by the mkosi config files in .mkosi. - on: push: branches: @@ -31,7 +33,7 @@ jobs: run: sudo apt-get update && sudo apt-get install --no-install-recommends python3-pexpect python3-jinja2 - name: Configure - run: echo -e "[Distribution]\nDistribution=${{ matrix.distro }}\n" > mkosi.default + run: echo -e "[Distribution]\nDistribution=${{ matrix.distro }}\n" >mkosi.default # Ubuntu's systemd-nspawn doesn't support faccessat2() syscall, which is # required, since current Arch's glibc implements faccessat() via faccessat2(). diff --git a/.github/workflows/unit_tests.sh b/.github/workflows/unit_tests.sh index bc5050fd1ca..e1f7a4be1e5 100755 --- a/.github/workflows/unit_tests.sh +++ b/.github/workflows/unit_tests.sh @@ -1,4 +1,5 @@ #!/bin/bash +# SPDX-License-Identifier: LGPL-2.1-or-later # shellcheck disable=SC2206 PHASES=(${@:-SETUP RUN RUN_ASAN_UBSAN CLEANUP}) diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index 9055716ef23..e697e6485d8 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -1,5 +1,6 @@ --- # vi: ts=2 sw=2 et: +# SPDX-License-Identifier: LGPL-2.1-or-later # name: Unit tests on: diff --git a/.semaphore/semaphore-runner.sh b/.semaphore/semaphore-runner.sh index a0a4153cde7..381504fd3b9 100755 --- a/.semaphore/semaphore-runner.sh +++ b/.semaphore/semaphore-runner.sh @@ -1,4 +1,5 @@ #!/bin/bash +# SPDX-License-Identifier: LGPL-2.1-or-later set -eux set -o pipefail diff --git a/.semaphore/semaphore.yml b/.semaphore/semaphore.yml index 06f162007ef..bd5d135e9e1 100644 --- a/.semaphore/semaphore.yml +++ b/.semaphore/semaphore.yml @@ -1,4 +1,5 @@ --- +# SPDX-License-Identifier: LGPL-2.1-or-later # vi: ts=2 sw=2 et: version: v1.0 diff --git a/tools/chromiumos/LICENSE b/LICENSES/BSD-3-Clause.txt similarity index 100% rename from tools/chromiumos/LICENSE rename to LICENSES/BSD-3-Clause.txt diff --git a/coccinelle/bool-cast.cocci b/coccinelle/bool-cast.cocci index 051ccb94175..a3311f06599 100644 --- a/coccinelle/bool-cast.cocci +++ b/coccinelle/bool-cast.cocci @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ @@ bool b; expression y; diff --git a/coccinelle/close-above-stdio.cocci b/coccinelle/close-above-stdio.cocci index 44b3b1c9f1e..93a0a85978d 100644 --- a/coccinelle/close-above-stdio.cocci +++ b/coccinelle/close-above-stdio.cocci @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ @@ expression fd; @@ diff --git a/coccinelle/cmp.cocci b/coccinelle/cmp.cocci index a34cbe5bf60..d5ab0f245e4 100644 --- a/coccinelle/cmp.cocci +++ b/coccinelle/cmp.cocci @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ @@ expression x, y; @@ diff --git a/coccinelle/const-strlen.disabled b/coccinelle/const-strlen.disabled index 30a6e5a88ed..8b1a635274c 100644 --- a/coccinelle/const-strlen.disabled +++ b/coccinelle/const-strlen.disabled @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ @@ constant s; @@ diff --git a/coccinelle/debug-logging.cocci b/coccinelle/debug-logging.cocci index a679dab0115..2885350f852 100644 --- a/coccinelle/debug-logging.cocci +++ b/coccinelle/debug-logging.cocci @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ @@ @@ ( diff --git a/coccinelle/div-round-up.cocci b/coccinelle/div-round-up.cocci index a0c6df9801f..609ec879d3b 100644 --- a/coccinelle/div-round-up.cocci +++ b/coccinelle/div-round-up.cocci @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ @@ expression x, y; @@ diff --git a/coccinelle/dup-fcntl.cocci b/coccinelle/dup-fcntl.cocci index 8b133b3a24f..2c87f70dc3d 100644 --- a/coccinelle/dup-fcntl.cocci +++ b/coccinelle/dup-fcntl.cocci @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ @@ /* We want to stick with dup() in test-fd-util.c */ position p : script:python() { p[0].file != "src/test/test-fd-util.c" }; diff --git a/coccinelle/empty-or-dash.cocci b/coccinelle/empty-or-dash.cocci index bebaead2ffe..56246affaa0 100644 --- a/coccinelle/empty-or-dash.cocci +++ b/coccinelle/empty-or-dash.cocci @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ @@ expression s; @@ diff --git a/coccinelle/empty-or-root.cocci b/coccinelle/empty-or-root.cocci index bf2f614da67..d36f0c8b1bf 100644 --- a/coccinelle/empty-or-root.cocci +++ b/coccinelle/empty-or-root.cocci @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ @@ expression s; @@ diff --git a/coccinelle/empty-to-null.cocci b/coccinelle/empty-to-null.cocci index bc6c656e798..1cc89475a6f 100644 --- a/coccinelle/empty-to-null.cocci +++ b/coccinelle/empty-to-null.cocci @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ @@ /* Avoid running this transformation on the empty_to_null function itself */ position p : script:python() { p[0].current_element != "empty_to_null" }; diff --git a/coccinelle/empty-to-root.cocci b/coccinelle/empty-to-root.cocci index 3720497bef9..9a65a6936f2 100644 --- a/coccinelle/empty-to-root.cocci +++ b/coccinelle/empty-to-root.cocci @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ @@ expression s; @@ diff --git a/coccinelle/enotsup.cocci b/coccinelle/enotsup.cocci index c65734d382c..47ac4b748b9 100644 --- a/coccinelle/enotsup.cocci +++ b/coccinelle/enotsup.cocci @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ @@ @@ - ENOTSUP diff --git a/coccinelle/equals-null.cocci b/coccinelle/equals-null.cocci index 3fce0f4caae..92c70540130 100644 --- a/coccinelle/equals-null.cocci +++ b/coccinelle/equals-null.cocci @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ @@ expression e; statement s; diff --git a/coccinelle/errno-check.cocci b/coccinelle/errno-check.cocci index 709cb4ace6f..f6f0071cd11 100644 --- a/coccinelle/errno-check.cocci +++ b/coccinelle/errno-check.cocci @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ @@ constant c; @@ diff --git a/coccinelle/errno.cocci b/coccinelle/errno.cocci index 4e594e7826c..dd886ea4930 100644 --- a/coccinelle/errno.cocci +++ b/coccinelle/errno.cocci @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ @@ identifier log_LEVEL_errno =~ "^log_(debug|info|notice|warning|error|emergency)_errno$"; local idexpression r; diff --git a/coccinelle/exit-0.cocci b/coccinelle/exit-0.cocci index 8b81600579a..ff3d965a9d0 100644 --- a/coccinelle/exit-0.cocci +++ b/coccinelle/exit-0.cocci @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ @@ @@ - exit(0); diff --git a/coccinelle/flags-set.cocci b/coccinelle/flags-set.cocci index 22620f18490..bcf08db23ba 100644 --- a/coccinelle/flags-set.cocci +++ b/coccinelle/flags-set.cocci @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ @@ /* Disable this transformation in cases where it doesn't make sense or * where it makes the resulting expression more confusing diff --git a/coccinelle/fopen-unlocked.cocci b/coccinelle/fopen-unlocked.cocci index 7870f8ccea0..1caa698c7bc 100644 --- a/coccinelle/fopen-unlocked.cocci +++ b/coccinelle/fopen-unlocked.cocci @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ @@ expression f, path, options; @@ diff --git a/coccinelle/free_and_replace.cocci b/coccinelle/free_and_replace.cocci index 9dcdbf4d42a..7d8b6a738cd 100644 --- a/coccinelle/free_and_replace.cocci +++ b/coccinelle/free_and_replace.cocci @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ @@ expression p, q; @@ diff --git a/coccinelle/hashmap_free.cocci b/coccinelle/hashmap_free.cocci index 86b95424889..31e1279ac0a 100644 --- a/coccinelle/hashmap_free.cocci +++ b/coccinelle/hashmap_free.cocci @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ @@ expression p; @@ diff --git a/coccinelle/htonl.cocci b/coccinelle/htonl.cocci index 4e69bb70902..c247d24e9bc 100644 --- a/coccinelle/htonl.cocci +++ b/coccinelle/htonl.cocci @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ @@ expression s; @@ diff --git a/coccinelle/in_set.cocci b/coccinelle/in_set.cocci index 1c17c7df1f4..8be786dc2d9 100644 --- a/coccinelle/in_set.cocci +++ b/coccinelle/in_set.cocci @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ /* Limit the number of expressions to 6 for performance reasons */ @@ expression e; diff --git a/coccinelle/iovec-make.cocci b/coccinelle/iovec-make.cocci index 7a0d4ced9b8..79116882fc7 100644 --- a/coccinelle/iovec-make.cocci +++ b/coccinelle/iovec-make.cocci @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ @@ expression x, y, p, l; @@ diff --git a/coccinelle/isempty.cocci b/coccinelle/isempty.cocci index e0a9f07ca6d..b1b92772707 100644 --- a/coccinelle/isempty.cocci +++ b/coccinelle/isempty.cocci @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ @@ /* Disable this transformation for the test-string-util.c */ position p : script:python() { p[0].file != "src/test/test-string-util.c" }; diff --git a/coccinelle/log-json.cocci b/coccinelle/log-json.cocci index 3730fd6ea33..d184e565845 100644 --- a/coccinelle/log-json.cocci +++ b/coccinelle/log-json.cocci @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ @@ expression e, v, flags; expression list args; diff --git a/coccinelle/macros.h b/coccinelle/macros.h index 62177f0d86c..0be4aaea427 100644 --- a/coccinelle/macros.h +++ b/coccinelle/macros.h @@ -1,4 +1,6 @@ -/* Collected macros from our systemd codebase to make the cocci semantic +/* SPDX-License-Identifier: LGPL-2.1-or-later */ +/* + * Collected macros from our systemd codebase to make the cocci semantic * parser happy. Inspired by the original cocci macros file * /usr/lib64/coccinelle/standard.h (including the YACFE_* symbols) */ diff --git a/coccinelle/malloc_multiply.cocci b/coccinelle/malloc_multiply.cocci index 3284edf7378..320d257bd9b 100644 --- a/coccinelle/malloc_multiply.cocci +++ b/coccinelle/malloc_multiply.cocci @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ @@ expression q, n, m; @@ diff --git a/coccinelle/memzero.cocci b/coccinelle/memzero.cocci index 8198cc84b4c..90fa0ddef65 100644 --- a/coccinelle/memzero.cocci +++ b/coccinelle/memzero.cocci @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ @@ expression s; @@ diff --git a/coccinelle/mfree.cocci b/coccinelle/mfree.cocci index 1389cd35dbf..191cd626f52 100644 --- a/coccinelle/mfree.cocci +++ b/coccinelle/mfree.cocci @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ @@ expression p; @@ diff --git a/coccinelle/mfree_return.cocci b/coccinelle/mfree_return.cocci index 15e6c7d566b..c2c4cb3209e 100644 --- a/coccinelle/mfree_return.cocci +++ b/coccinelle/mfree_return.cocci @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ @@ /* Avoid running this transformation on the mfree function itself */ position p : script:python() { p[0].current_element != "mfree" }; diff --git a/coccinelle/no-if-assignments.cocci b/coccinelle/no-if-assignments.cocci index 9f63e903376..9fbc018f11a 100644 --- a/coccinelle/no-if-assignments.cocci +++ b/coccinelle/no-if-assignments.cocci @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ @@ expression p, q; identifier r; diff --git a/coccinelle/not_in_set.cocci b/coccinelle/not_in_set.cocci index 3486cff5df1..0840109502a 100644 --- a/coccinelle/not_in_set.cocci +++ b/coccinelle/not_in_set.cocci @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ /* Limit the number of expressions to 6 for performance reasons */ @@ expression e; diff --git a/coccinelle/o-ndelay.cocci b/coccinelle/o-ndelay.cocci index 669424a0548..8b7a150243f 100644 --- a/coccinelle/o-ndelay.cocci +++ b/coccinelle/o-ndelay.cocci @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ @@ @@ - O_NDELAY diff --git a/coccinelle/reallocarray.cocci b/coccinelle/reallocarray.cocci index 21fe9dfbfdf..85a8b3bc38d 100644 --- a/coccinelle/reallocarray.cocci +++ b/coccinelle/reallocarray.cocci @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ @@ expression q, p, n, m; @@ diff --git a/coccinelle/redundant-if.cocci b/coccinelle/redundant-if.cocci index 515e36e1517..6582d6373b5 100644 --- a/coccinelle/redundant-if.cocci +++ b/coccinelle/redundant-if.cocci @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ @@ expression r; @@ diff --git a/coccinelle/run-coccinelle.sh b/coccinelle/run-coccinelle.sh index e7a6d51f499..becb38bf913 100755 --- a/coccinelle/run-coccinelle.sh +++ b/coccinelle/run-coccinelle.sh @@ -1,4 +1,5 @@ #!/bin/bash -e +# SPDX-License-Identifier: LGPL-2.1-or-later # Exclude following paths from the Coccinelle transformations EXCLUDED_PATHS=( diff --git a/coccinelle/safe_close-no-if.cocci b/coccinelle/safe_close-no-if.cocci index 81c56785181..881ce1fa0a8 100644 --- a/coccinelle/safe_close-no-if.cocci +++ b/coccinelle/safe_close-no-if.cocci @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ @@ expression fd; @@ diff --git a/coccinelle/safe_close.cocci b/coccinelle/safe_close.cocci index 6fedd804f2e..36a85372517 100644 --- a/coccinelle/safe_close.cocci +++ b/coccinelle/safe_close.cocci @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ @@ expression fd; @@ diff --git a/coccinelle/safe_closedir.cocci b/coccinelle/safe_closedir.cocci index 743ffd97efb..8981825230e 100644 --- a/coccinelle/safe_closedir.cocci +++ b/coccinelle/safe_closedir.cocci @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ @@ expression p; @@ diff --git a/coccinelle/safe_fclose.cocci b/coccinelle/safe_fclose.cocci index 6961cd01645..fc1b584d88f 100644 --- a/coccinelle/safe_fclose.cocci +++ b/coccinelle/safe_fclose.cocci @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ @@ expression p; @@ diff --git a/coccinelle/sd_event_source_disable_unref.cocci b/coccinelle/sd_event_source_disable_unref.cocci index 2763fefac90..659aa00cf32 100644 --- a/coccinelle/sd_event_source_disable_unref.cocci +++ b/coccinelle/sd_event_source_disable_unref.cocci @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ @@ expression p; @@ diff --git a/coccinelle/set_ensure_put.cocci b/coccinelle/set_ensure_put.cocci index 92d7970adea..cfcd77b7a16 100644 --- a/coccinelle/set_ensure_put.cocci +++ b/coccinelle/set_ensure_put.cocci @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ @@ local idexpression r; expression p, k, x; diff --git a/coccinelle/strempty.cocci b/coccinelle/strempty.cocci index 0868184c5d4..d36f092f63a 100644 --- a/coccinelle/strempty.cocci +++ b/coccinelle/strempty.cocci @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ @@ /* Avoid running this transformation on the strempty function itself and * on the "make_expression" macro in src/libsystemd/sd-bus/bus-convenience.c. diff --git a/coccinelle/strjoin.cocci b/coccinelle/strjoin.cocci index 46f70c4c236..1efff700b7b 100644 --- a/coccinelle/strjoin.cocci +++ b/coccinelle/strjoin.cocci @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ @@ position p : script:python() { p[0].current_element != "test_strjoin" }; expression t; diff --git a/coccinelle/strjoina.cocci b/coccinelle/strjoina.cocci index b2096334805..891b22a2040 100644 --- a/coccinelle/strjoina.cocci +++ b/coccinelle/strjoina.cocci @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ @@ position p : script:python() { p[0].current_element != "test_strjoina" }; expression n, m; diff --git a/coccinelle/strv_free.cocci b/coccinelle/strv_free.cocci index 0ad56f772f3..8eddfc566ed 100644 --- a/coccinelle/strv_free.cocci +++ b/coccinelle/strv_free.cocci @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ @@ expression p; @@ diff --git a/coccinelle/swap-two.cocci b/coccinelle/swap-two.cocci index edf7d32403e..d80c4e0402f 100644 --- a/coccinelle/swap-two.cocci +++ b/coccinelle/swap-two.cocci @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ @@ expression x, y, z; @@ diff --git a/coccinelle/synthetic-errno.cocci b/coccinelle/synthetic-errno.cocci index dcae069f748..6826ea45dad 100644 --- a/coccinelle/synthetic-errno.cocci +++ b/coccinelle/synthetic-errno.cocci @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ @@ expression e; expression list args; diff --git a/coccinelle/take-fd.cocci b/coccinelle/take-fd.cocci index f7124e78965..396d6965c74 100644 --- a/coccinelle/take-fd.cocci +++ b/coccinelle/take-fd.cocci @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ @@ local idexpression p; expression q; diff --git a/coccinelle/take-ptr.cocci b/coccinelle/take-ptr.cocci index 0cebe815759..3251d3ed65a 100644 --- a/coccinelle/take-ptr.cocci +++ b/coccinelle/take-ptr.cocci @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ @@ local idexpression p; expression q; diff --git a/coccinelle/while-true.cocci b/coccinelle/while-true.cocci index c23fb11f223..3ea70bc0c61 100644 --- a/coccinelle/while-true.cocci +++ b/coccinelle/while-true.cocci @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ @@ statement s; @@ diff --git a/coccinelle/xsprintf.cocci b/coccinelle/xsprintf.cocci index 660a35e3f4d..3b38090652e 100644 --- a/coccinelle/xsprintf.cocci +++ b/coccinelle/xsprintf.cocci @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ @@ position p : script:python() { not p[0].file.startswith("man/") }; expression e, fmt; diff --git a/coccinelle/zz-drop-braces.cocci b/coccinelle/zz-drop-braces.cocci index 34bf12fbea7..8c3be01c1f7 100644 --- a/coccinelle/zz-drop-braces.cocci +++ b/coccinelle/zz-drop-braces.cocci @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ @@ position p : script:python() { p[0].file != "src/journal/lookup3.c" }; identifier id; diff --git a/man/custom-entities.ent.in b/man/custom-entities.ent.in index 76a3dace33e..5c01ccb7016 100644 --- a/man/custom-entities.ent.in +++ b/man/custom-entities.ent.in @@ -1,4 +1,5 @@ + diff --git a/mkosi.build b/mkosi.build index 1ed6815bf9d..bb04d5edaad 100755 --- a/mkosi.build +++ b/mkosi.build @@ -1,4 +1,5 @@ #!/bin/sh +# SPDX-License-Identifier: LGPL-2.1-or-later set -e # This is a build script for OS image generation using mkosi (https://github.com/systemd/mkosi). diff --git a/network/80-wifi-adhoc.network b/network/80-wifi-adhoc.network index 8ca59dee250..c0c388f165b 100644 --- a/network/80-wifi-adhoc.network +++ b/network/80-wifi-adhoc.network @@ -1,3 +1,12 @@ +# SPDX-License-Identifier: LGPL-2.1-or-later +# +# This file is part of systemd. +# +# systemd 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. + [Match] Type=wlan WLANInterfaceType=ad-hoc diff --git a/po/POTFILES.in b/po/POTFILES.in index 0346a19c82e..e0458524434 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: LGPL-2.1-or-later + src/core/org.freedesktop.systemd1.policy.in src/home/org.freedesktop.home1.policy src/hostname/org.freedesktop.hostname1.policy diff --git a/po/fi.po b/po/fi.po index 30d03c38261..3443e62a7fa 100644 --- a/po/fi.po +++ b/po/fi.po @@ -1,6 +1,6 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the systemd package. +# SPDX-License-Identifier: LGPL-2.1-or-later +# +# Finnish translation of systemd. # Jan Kuparinen , 2021. msgid "" msgstr "" diff --git a/po/kab.po b/po/kab.po index 8f6626a8d46..dc5f591781a 100644 --- a/po/kab.po +++ b/po/kab.po @@ -1,6 +1,6 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the systemd package. +# SPDX-License-Identifier: LGPL-2.1-or-later +# +# Kabyle translation of systemd. # Slimane Selyan Amiri , 2021. msgid "" msgstr "" diff --git a/po/nl.po b/po/nl.po index efd7f244e78..f430603a6aa 100644 --- a/po/nl.po +++ b/po/nl.po @@ -1,6 +1,6 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the systemd package. +# SPDX-License-Identifier: LGPL-2.1-or-later +# +# Dutch translation of systemd. # Pjotr Vertaalt , 2021. msgid "" msgstr "" diff --git a/po/pt.po b/po/pt.po index 9176dc53153..089cd7c552d 100644 --- a/po/pt.po +++ b/po/pt.po @@ -1,6 +1,6 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the systemd package. +# SPDX-License-Identifier: LGPL-2.1-or-later +# +# Portuguese translation of systemd. # Hugo Carvalho , 2021. msgid "" msgstr "" diff --git a/po/si.po b/po/si.po index 18eec400189..8c9e870cfac 100644 --- a/po/si.po +++ b/po/si.po @@ -1,6 +1,6 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the systemd package. +# SPDX-License-Identifier: LGPL-2.1-or-later +# +# Sinhala translation of systemd. # Hela Basa , 2021. msgid "" msgstr "" diff --git a/po/sr.po b/po/sr.po index 0f0094594a8..df2f59d46f7 100644 --- a/po/sr.po +++ b/po/sr.po @@ -1,7 +1,6 @@ # SPDX-License-Identifier: LGPL-2.1-or-later # -# SOME DESCRIPTIVE TITLE. -# This file is distributed under the same license as the PACKAGE package. +# Serbian translation of systemd. # Frantisek Sumsal , 2021. msgid "" msgstr "" diff --git a/po/systemd.pot b/po/systemd.pot index 1c5ed6f04fc..8e900b0d7ca 100644 --- a/po/systemd.pot +++ b/po/systemd.pot @@ -1,7 +1,4 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the systemd package. -# FIRST AUTHOR , YEAR. +# SPDX-License-Identifier: LGPL-2.1-or-later # #, fuzzy msgid "" diff --git a/po/uk.po b/po/uk.po index b628f6c57a9..6343db3a8f4 100644 --- a/po/uk.po +++ b/po/uk.po @@ -1,4 +1,5 @@ # SPDX-License-Identifier: LGPL-2.1-or-later +# # Ukrainian translation for systemd. # Eugene Melnik , 2014. # Daniel Korostil , 2014, 2016, 2018. diff --git a/po/zh_CN.po b/po/zh_CN.po index f5686932282..2b5f3969aa6 100644 --- a/po/zh_CN.po +++ b/po/zh_CN.po @@ -1,7 +1,6 @@ # SPDX-License-Identifier: LGPL-2.1-or-later # # Simplified Chinese translation for systemd. -# # Frank Hill , 2014. # Boyuan Yang <073plan@gmail.com>, 2015. # Jeff Bai , 2016. diff --git a/shell-completion/zsh/_systemd-path b/shell-completion/zsh/_systemd-path index dd2e720fd9f..d1fb24b2fd8 100644 --- a/shell-completion/zsh/_systemd-path +++ b/shell-completion/zsh/_systemd-path @@ -1,4 +1,5 @@ #compdef systemd-path +# SPDX-License-Identifier: LGPL-2.1-or-later typeset -A sdpath=( ${$(systemd-path)/:/} ) _arguments -S \ diff --git a/src/basic/missing_mount.h b/src/basic/missing_mount.h index c60acf041aa..69b0bcfcbfe 100644 --- a/src/basic/missing_mount.h +++ b/src/basic/missing_mount.h @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ #pragma once #include diff --git a/src/basic/missing_securebits.h b/src/basic/missing_securebits.h index 40d6ec9d718..03fad6f503a 100644 --- a/src/basic/missing_securebits.h +++ b/src/basic/missing_securebits.h @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ #pragma once #include diff --git a/src/login/systemd-user.in b/src/login/systemd-user.in index 19e649bbe95..39bcbd71fe3 100644 --- a/src/login/systemd-user.in +++ b/src/login/systemd-user.in @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: LGPL-2.1-or-later # This file is part of systemd. # # Used by systemd --user instances. diff --git a/src/rpm/systemd-update-helper.in b/src/rpm/systemd-update-helper.in index 0c6675a9db0..fa35e7ba903 100755 --- a/src/rpm/systemd-update-helper.in +++ b/src/rpm/systemd-update-helper.in @@ -1,4 +1,5 @@ #!/bin/bash +# SPDX-License-Identifier: LGPL-2.1-or-later set -eu set -o pipefail diff --git a/test/create-busybox-container b/test/create-busybox-container index b6f34b47ecf..05ab2b11c9f 100755 --- a/test/create-busybox-container +++ b/test/create-busybox-container @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: LGPL-2.1-or-later set -e set -u diff --git a/test/mkosi.build.networkd-test b/test/mkosi.build.networkd-test index cdaa4302f71..ea97d012fa4 100755 --- a/test/mkosi.build.networkd-test +++ b/test/mkosi.build.networkd-test @@ -1,4 +1,5 @@ #!/bin/sh +# SPDX-License-Identifier: LGPL-2.1-or-later set -ex # First, source in the main build script diff --git a/test/mkosi.default.networkd-test b/test/mkosi.default.networkd-test index fc9a5d3134b..6423417b81c 100644 --- a/test/mkosi.default.networkd-test +++ b/test/mkosi.default.networkd-test @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: LGPL-2.1-or-later +# # Puts together an nspawn container and runs networkd-test.py in it, inside a # network namespace and everything. Run this with # diff --git a/test/mkosi.nspawn.networkd-test b/test/mkosi.nspawn.networkd-test index a23aed6eda9..f624f241f3d 100644 --- a/test/mkosi.nspawn.networkd-test +++ b/test/mkosi.nspawn.networkd-test @@ -1,2 +1,4 @@ +# SPDX-License-Identifier: LGPL-2.1-or-later + [Network] Private=yes diff --git a/test/run-integration-tests.sh b/test/run-integration-tests.sh index 2b48417d583..89058f4aca6 100755 --- a/test/run-integration-tests.sh +++ b/test/run-integration-tests.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: LGPL-2.1-or-later set -e if [ "$NO_BUILD" ]; then diff --git a/test/run-unit-tests.py b/test/run-unit-tests.py index f4d290aa912..314182d980a 100755 --- a/test/run-unit-tests.py +++ b/test/run-unit-tests.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# SPDX-License-Identifier: LGPL-2.1-or-later import argparse import glob diff --git a/test/test-efi-create-disk.sh b/test/test-efi-create-disk.sh index e0949ba7295..46062e46e70 100755 --- a/test/test-efi-create-disk.sh +++ b/test/test-efi-create-disk.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: LGPL-2.1-or-later set -eo pipefail out="${1:?}" diff --git a/test/test-functions b/test/test-functions index a9a01a80d0d..31eb86f2bd3 100644 --- a/test/test-functions +++ b/test/test-functions @@ -1,6 +1,8 @@ #!/usr/bin/env bash -# shellcheck disable=SC2030,SC2031 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# SPDX-License-Identifier: LGPL-2.1-or-later +# +# shellcheck disable=SC2030,SC2031 # ex: ts=8 sw=4 sts=4 et filetype=sh tw=180 # Note: the shellcheck line above disables warning for variables which were # modified in a subshell. In our case this behavior is expected, but diff --git a/test/test-network-generator-conversion.sh b/test/test-network-generator-conversion.sh index da7f985deec..3b6b1ec8ba8 100755 --- a/test/test-network-generator-conversion.sh +++ b/test/test-network-generator-conversion.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: LGPL-2.1-or-later set -ex if [[ -n "$1" ]]; then diff --git a/test/test-sysusers.sh.in b/test/test-sysusers.sh.in index 6e133cc841b..c9d9bd993b9 100755 --- a/test/test-sysusers.sh.in +++ b/test/test-sysusers.sh.in @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: LGPL-2.1-or-later set -e SYSUSERS="${1:-systemd-sysusers}" diff --git a/test/udev-test.pl b/test/udev-test.pl index 5c1b364848c..3aeac655780 100755 --- a/test/udev-test.pl +++ b/test/udev-test.pl @@ -1,4 +1,5 @@ #!/usr/bin/env perl +# SPDX-License-Identifier: LGPL-2.1-or-later # udev test # diff --git a/tools/chromiumos/gen_autosuspend_rules.py b/tools/chromiumos/gen_autosuspend_rules.py index 6e167f60f09..cbdd577e95c 100644 --- a/tools/chromiumos/gen_autosuspend_rules.py +++ b/tools/chromiumos/gen_autosuspend_rules.py @@ -1,9 +1,10 @@ #!/usr/bin/env python3 +# SPDX-License-Identifier: BSD-3-Clause # -*- coding: utf-8 -*- # Copyright 2017 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE file. +# found in the LICENSES/BSD-3-Clause.txt file. """Autosuspend udev rule generator diff --git a/xorg/50-systemd-user.sh b/xorg/50-systemd-user.sh index bfee5f691c4..fb03ecbec05 100755 --- a/xorg/50-systemd-user.sh +++ b/xorg/50-systemd-user.sh @@ -1,4 +1,12 @@ #!/bin/sh +# SPDX-License-Identifier: LGPL-2.1-or-later +# +# This file is part of systemd. +# +# systemd 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. systemctl --user import-environment DISPLAY XAUTHORITY